jdporter has asked for the wisdom of the Perl Monks concerning the following question:
I just got bitten by a veri nåsti bügg in File::Find on Windows.... It goes like this — stop me if you've heard this one before —
Note: no slashes in either path name.use File::Find; find( \&wanted, "C:" ); my @st = stat "C:bar.txt";
Further conditions:
Does anybody have any ideas on how to get around this? I'd sure like to not have to go discover, and then restore, the cwd of all the drives on the Windows machine.
One possibility that should work is to turn on no_chdir for File::Find... but in fact, this is broken on Windows too! It fails to recurse at all.
Thanks in advance...This is perl, v5.8.8 built for MSWin32-x86-multi-thread Binary build 819 [267479] provided by ActiveState
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bugs in File::Find on Windows
by Steve_p (Priest) on Feb 15, 2007 at 23:40 UTC | |
by jdporter (Paladin) on Feb 16, 2007 at 00:17 UTC | |
Re: Bugs in File::Find on Windows
by Anonymous Monk on Feb 16, 2007 at 00:02 UTC | |
by jdporter (Paladin) on Feb 16, 2007 at 00:14 UTC | |
by eric256 (Parson) on Feb 16, 2007 at 01:05 UTC | |
by jdporter (Paladin) on Feb 16, 2007 at 02:01 UTC | |
by ikegami (Patriarch) on Feb 16, 2007 at 02:43 UTC | |
| |
Re: Bugs in File::Find on Windows
by davorg (Chancellor) on Feb 16, 2007 at 08:58 UTC | |
Re: Bugs in File::Find on Windows
by Anonymous Monk on Feb 16, 2007 at 01:16 UTC | |
Re: Bugs in File::Find on Windows
by pKai (Priest) on Feb 16, 2007 at 23:36 UTC | |
by jdporter (Paladin) on Feb 19, 2007 at 14:48 UTC | |
by pKai (Priest) on Feb 19, 2007 at 19:30 UTC |