How to tell if a file is writable in sandboxed mode?
How to tell if a file is writable in sandboxed mode?
- Subject: How to tell if a file is writable in sandboxed mode?
- From: Oleg Krupnov <email@hidden>
- Date: Fri, 08 Nov 2013 18:31:40 +0200
I’m trying to use -[NSFileManager isWritableFileAtPath:], but when it
returns NO, I’d like to know if it’s “no” because the app simply
doesn’t have access to this path due to sandboxing, or is it “no"
because the file doesn’t have write permissions set in its file
attributes?
Is there a way to discriminate these two cases?
Or more generally, is there a way to tell that an app does or does not
have access to some file because of *sandboxing* (as opposed to file
attributes)?
Thanks!
_______________________________________________
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