Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

(tye)Re: Subtleties of files and directories

by tye (Sage)
on Mar 23, 2001 at 01:56 UTC ( [id://66480]=note: print w/replies, xml ) Need Help??


in reply to Subtleties of files and directories

-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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://66480]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found