• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do "mkdir -p"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do "mkdir -p"?


  • Subject: Re: How to do "mkdir -p"?
  • From: Andy Lee <email@hidden>
  • Date: Fri, 12 Apr 2002 22:36:48 -0400

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.

  • Follow-Ups:
    • Re: How to do "mkdir -p"?
      • From: Graeme Hiebert <email@hidden>
    • Re: How to do "mkdir -p"?
      • From: Alvin Koh <email@hidden>
References: 
 >Re: How to do "mkdir -p"? (From: Christopher B Hamlin <email@hidden>)

  • Prev by Date: Re: How to do "mkdir -p"?
  • Next by Date: Re: How to do "mkdir -p"?
  • Previous by thread: Re: How to do "mkdir -p"?
  • Next by thread: Re: How to do "mkdir -p"?
  • Index(es):
    • Date
    • Thread