Re: How to do "mkdir -p"?
Re: How to do "mkdir -p"?
- Subject: Re: How to do "mkdir -p"?
- From: Alvin Koh <email@hidden>
- Date: Sat, 13 Apr 2002 11:08:03 +0800
mkdir the command accepts a -p to create any necessary, but the standard
unix mkdir() the system call requires parent directories to be created
first. This is probably what Cocoa is invoking at the lowest level.
On 13/4/02 10:36 AM, "Andy Lee" <email@hidden> wrote:
>
At 10:15 PM -0400 4/12/02, Christopher B Hamlin wrote:
>
> Is there some reason you can't do the real thing?
>
>
>
> system ("mkdir -p /blah/foo");
>
>
>
>
None that I can think of.
>
>
It seemed odd to me that [NSFileManager
>
-createDirectoryAtPath:attributes:] requires the parent directory to
>
exist, because how hard could it be to create intermediate
>
directories if "mkdir -p" does it? I wondered if there was some
>
filesystem subtlety I wasn't grasping, but even if there is, I should
>
be able to use mkdir itself, as you say.
>
>
Thanks,
>
--Andy
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.