Re: Anybody using NSFileManager here?
Re: Anybody using NSFileManager here?
- Subject: Re: Anybody using NSFileManager here?
- From: Laurent Daudelin <email@hidden>
- Date: Thu, 14 Apr 2011 11:26:43 -0700
On Apr 14, 2011, at 11:18, Fritz Anderson wrote:
> On 14 Apr 2011, at 12:51 PM, Laurent Daudelin wrote:
>
>> So, anybody on the list using NSFileManager for serious stuff besides me?
>
> Constantly, though for undemanding, synchronous tasks: Existence, deletion, creation, properties, rename, move, standard directory paths. I almost never use the POSIX equivalents.
>
> What sort of problems are you having? I'm sorry I don't remember your questions.
Fritz,
Maybe I didn't post my question at the right time. The latest question that went under the pile of messages about lockless thread-safe accessor from blocks and other UI stuff was this one:
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.
Not a big problem. I can check if it's writable at path and if it's not, then I know the delete won't work but I was wondering if this was the expected behavior for NSFileManager isDeletableFileAtPath: ...
-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