• 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: Anybody using NSFileManager here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anybody using NSFileManager here?


  • Subject: Re: Anybody using NSFileManager here?
  • From: Laurent Daudelin <email@hidden>
  • Date: Thu, 14 Apr 2011 12:41:02 -0700

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" <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.
>>

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					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

References: 
 >Re: Anybody using NSFileManager here? (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: Anybody using NSFileManager here?
  • Next by Date: Re: Cocoa witch's broom
  • Previous by thread: Re: Anybody using NSFileManager here?
  • Next by thread: Adding custom view in IB
  • Index(es):
    • Date
    • Thread