In your wanted() sub (near the top), it should work as you expect if you add a return if -d $File::Find::name && ! -x $File::Find::name;.
That checks to see if the current item is a directory, and checks whether the effective UID can traverse into it.
In reply to Re: Suppress 'Can't chdir to' warnings for File::Find
by stevieb
in thread Suppress 'Can't chdir to' warnings for File::Find
by mabossert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |