File::Find has a variable $File::Find::prune. When it's true, F::F won't descend into any subdirectories of the current directory.
You might also want to monitor $File::Find::dir, if you want to descend inside your $restricted directories
TGI says moo
In reply to Re: skip directories when using File::Find
by TGI
in thread skip directories when using File::Find
by agent00013
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |