in reply to Suppress 'Can't chdir to' warnings for File::Find
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Suppress 'Can't chdir to' warnings for File::Find
by mabossert (Scribe) on Apr 28, 2016 at 17:21 UTC | |
by jellisii2 (Hermit) on Apr 29, 2016 at 12:05 UTC | |
by stevieb (Canon) on Apr 29, 2016 at 13:12 UTC |