isDeletableFileAtPath: returns YES for locked files???
isDeletableFileAtPath: returns YES for locked files???
- Subject: isDeletableFileAtPath: returns YES for locked files???
- From: Laurent Daudelin <email@hidden>
- Date: Wed, 13 Apr 2011 16:33:19 -0700
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.
Comments?
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software 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