On Apr 14, 2011, at 11:44, Gary L. Wade wrote:

> 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" <laur...@nemesys-soft.com>
> 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.
>> 

Yes, I did notice that, Gary. Not sure how convenient a method that returns yes 
when you can't do the operation can really be, but I duly notice your comment.

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
laur...@nemesys-soft.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to