I think what you mean is "do stuff with files (selecting, modifying) from a certain folder, down into all the folders within folders underneath". What you are looking for in that case, is a 'depth' parameter. Most (if not all) operations where this is relevant have such a parameter.
depth 0 would mean "only do whatever in the folder you specify; i.e. do not traverse into deeper folders.
depth 1 would mean "process current folder and 1 below but no further"
Leaving off this parameter typically defaults to unlimited depth, i.e. go deeper into branches of folders until there is none deeper to go into.
(NB: be aware that "recursive" means something more and sometimes scary to programmers, where you most likely only mean the more mathematical sense of "deeper into a hierarchy until a certain point and/or end")
hth -- Peter