• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: isDeletableFileAtPath: returns YES for locked files???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isDeletableFileAtPath: returns YES for locked files???


  • Subject: Re: isDeletableFileAtPath: returns YES for locked files???
  • From: Vera Tkachenko <email@hidden>
  • Date: Thu, 14 Apr 2011 17:25:40 +0300

> 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

After unsuccessful experience with isDeletableFileAtPath: I've come up with trying to remove file at first and if failed try to unlock file if it's locked and try to remove it again. But I agree, isDeletableFileAtPath: behavior is incorrect in this case.

--
Thanks,
Vera Tkachenko
Developer @macpaw_______________________________________________

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

  • Prev by Date: Re: Lockless thread-safe accessor using blocks: how to?
  • Next by Date: Cocoa witch's broom
  • Previous by thread: Re: isDeletableFileAtPath: returns YES for locked files???
  • Next by thread: Preventing View Update in NSTableView
  • Index(es):
    • Date
    • Thread