Insuring a path exists
Insuring a path exists
- Subject: Insuring a path exists
- From: "Mike O'Connor" <email@hidden>
- Date: Tue, 08 Jun 2004 22:54:14 -0400
I have a path like this:
NSString* thePath=@"/Library/Application
Support/MyApp/MySubfolder/file.typ"
I want to insure that folders MyApp and MySubfolder exist, so that when
I do a writeToFile: using that path, it will succeed.
Is there a call I can make to insure the path exists, creating the
folders if needed, or do I have to write some code going through the
components of the path and doing it myself? TIA!
_______________________________________________
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.