Re: create new folder
Re: create new folder
- Subject: Re: create new folder
- From: Brian Ganninger <email@hidden>
- Date: Tue, 30 Dec 2003 16:20:04 -0600
Easy answer: NSFileManager.
Code answer: [[NSFileManager defaultManager]
createDirectoryAtPath@"/foo" attributes:nil]; // set attributes as you
will, see docs for info.
To check:
BOOL *isDir;
[[NSFileManager defaultManager] fileExistsAtPath:@"/foo"
isDirectory:&isDir];
// note that & indicates a reference to a variable for an indirect
return
HTH,
brian ganninger
On Dec 30, 2003, at 3:53 PM, Jay Rimalrick wrote:
is there an easy way creat a new folder in objective-c code?
and check to see of that folder has already been created?
thanks,
jay
________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
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.