SPUG: Re: Using mkpath

John Labovitz johnl at johnlabovitz.com
Sun Mar 3 19:29:34 CST 2002


On 3/3/02 10:24 AM, "Yitzchak Scott-Thoennes" <sthoenna at efn.org> wrote:

> In article <001201c1c189$12e32180$1a88ddd1 at aciwin>,
> "Richard Anderson" <richard at richard-anderson.org> wrote:
>> In fact, if
>> mkpath encounters a permissions problem, etc. it does NOT return a list of
>> directories, it throws a runtime error and the calling routine never gets
>> the list of directories.
> 
> Fair enough.  (Though it seems to me that would only happen with a disk
> filling up between making paths--or as a race condition).

It also croaks if the directories already exist -- a fairly common
situation.

-- 
John Labovitz
johnl at johnlabovitz.com
www.johnlabovitz.com


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org





More information about the spug-list mailing list