good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
(tye)Re: Subtleties of files and directoriesby tye (Sage) |
on Mar 23, 2001 at 01:56 UTC ( [id://66480]=note: print w/replies, xml ) | Need Help?? |
-e (and -d) will be true for directories but -f won't (yes, for all operating systems). Reading the actual code of sub rmtree in File::Path shows that if it is passed something that isn't a directory and the third argument to rmtree() is false, then it tries hard to delete it. - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|