kirk123 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am using the following lines to search for files in my C: drives. How can I modified my code to look anywhere except in "c:\winnt".
I know that the folder "winnt" is considered a directory in window.
finddepth (\&modified_file , c:\ ); sub modified_file { if (-f "$File::Find::name" ) { #do something } }
"$File::Find::name" is the current file.
--kirk
Edit Petruchio Wed Sep 4 04:12:19 UTC 2002 - Added markup
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you exclude certain folder or directories from a search
by rob_au (Abbot) on Sep 04, 2002 at 05:31 UTC | |
|
Re: How do you exclude certain folder or directories from a search
by grinder (Bishop) on Sep 04, 2002 at 07:44 UTC | |
by gnu@perl (Pilgrim) on Sep 04, 2002 at 14:30 UTC | |
|
Re: How do you exclude certain folder or directories from a search
by blaze (Friar) on Sep 04, 2002 at 02:51 UTC | |
by Anonymous Monk on Sep 04, 2002 at 02:53 UTC | |
by Anonymous Monk on Nov 20, 2018 at 11:47 UTC |