Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Safely create new directory

by moritz (Cardinal)
on Jul 25, 2012 at 19:24 UTC ( #983722=note: print w/ replies, xml ) Need Help??


in reply to Safely create new directory

mkdir already fails if the path already exists.

$ perl -wE 'say mkdir "/"; say $!' 0 File exists


Comment on Re: Safely create new directory
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2015-07-30 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls