Re: How to tell if a file is writable in sandboxed mode?
Re: How to tell if a file is writable in sandboxed mode?
- Subject: Re: How to tell if a file is writable in sandboxed mode?
- From: Mike Abdullah <email@hidden>
- Date: Sat, 09 Nov 2013 16:04:11 +0000
Does querying for NSURLIsWritableKey give you any more info?
On 8 Nov 2013, at 16:31, Oleg Krupnov <email@hidden> wrote:
> 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
_______________________________________________
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