Re: NSFileManager createDirectory… confusing docs.
Re: NSFileManager createDirectory… confusing docs.
- Subject: Re: NSFileManager createDirectory… confusing docs.
- From: Quincey Morris <email@hidden>
- Date: Sat, 23 Feb 2013 10:45:16 -0800
On Feb 23, 2013, at 07:57 , John Joyce <email@hidden> wrote:
> The docs do not seem clear on this. (not to me anyway).
Yes, they're not clear on this.
> If the directory you are creating is also considered an "intermediate parent" directory, that is just confusing.
Presumably, it seemed like a good idea to someone at some time to treat the leaf directory consistently with the intermediate directories, when 'withIntermediateDirectories:' is YES.
Or perhaps this was originally just a bug that was overlooked.
> Can anybody explain to me how this makes any sense?
It makes sense as a historical behavioral artifact, but changing the behavior of the existing API might break existing code in hard-to-debug ways.
I'd suggest you submit documentation feedback reporting the confusing description. It's likely not a high-priority issue, but OTOH it wouldn't be hard to improve the documentation.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden