Re: Anybody using NSFileManager here?
Re: Anybody using NSFileManager here?
- Subject: Re: Anybody using NSFileManager here?
- From: "Gary L. Wade" <email@hidden>
- Date: Thu, 14 Apr 2011 11:44:59 -0700
- Thread-topic: Anybody using NSFileManager here?
The documentation sounds more like it's a convenience method for checking
the Unix permissions for deleting the file rather than the HFS locked
setting. If you want to consider another non-HFS-aware issue in
NSFileManager, the file size info you get from the relevant message only
returns the size of a file's datafork, not its resource fork or any other
theoretical forks a file may have. For those who believe no one uses
resource forks, just look at Safari's in-progress downloads and Finder
clippings.
On 04/14/2011 11:26 AM, "Laurent Daudelin" <email@hidden>
wrote:
>Is it normal that NSFileManager's isDeletableFileAtPath: returns YES for
>a locked file? Based on the result it returns, when I try to send it a
>removeItemAtPath:error:, it fails and the error localized description is
>'³This is a test.docx² couldn¹t be removed because you don¹t have
>permission to access it.'. That seems wrong to me. First,
>isDeletableFileAtPath: shouldn't return YES for a locked file.
>
_______________________________________________
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