http://qs321.pair.com?node_id=309203


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.