Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re^2: rename 0.3 - now with two extra cupholders

by parv (Priest)
on Nov 23, 2003 at 00:42 UTC ( #309203=note: print w/replies, xml ) Need Help??


in reply to Re^2: rename 0.3 - now with two extra cupholders
in thread rename 0.3 - now with two extra cupholders

If the requested path is "/some/where/else", and only "/some" exists, would you create "where/else" or just "else"?

How would you go about this: on failure of simple "mkdir()" would you run "File::Path:mkpath()" (or similar) or just run "File::Path::mkpath()" in the first place?

  • Comment on Re: Re^2: rename 0.3 - now with two extra cupholders

Replies are listed 'Best First'.
Re^4: rename 0.3 - now with two extra cupholders
by Aristotle (Chancellor) on Nov 23, 2003 at 12:23 UTC
    Just mkpath everything, no need to check. If the path already fully exists, mkpath will just fail harmlessly.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://309203]
help
Chatterbox?
[LanX]: in the 70s
[GotToBTru]: so the font on the card is probably NOT Comic Sans
[GotToBTru]: that's a relief
[LanX]: Bruce_G._Blair
[choroba]: as in embossed card?
[Discipulus]: ironically from his pubblications: "Can Disarmament Work?"
[erix]: when is the bird-brain's inauguration tweet?
[erix]: (wasn't augur something to with birds too?)
[erix]: augur
[erix]: ah, deciding on the the flight of birds - good idea ;)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-01-20 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.