• 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
IsReadableFileAtPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IsReadableFileAtPath


  • Subject: IsReadableFileAtPath
  • From: "gMail.com" <email@hidden>
  • Date: Mon, 01 Mar 2010 20:20:14 +0100
  • Thread-topic: IsReadableFileAtPath

Hi,
I need to check whether a file or a symlink could be really copied.
I have just seen that the Cocoa API isReadableFileAtPath traverses the
symlink, so, in case the target file is not readable, my app doesn't copy
the symlink, while the Finder can properly do. So my app does wrong.

The question is:
How can I understand whether a file or symlink can really be copied?
I have seen that isReadableFileAtPath uses the C command "access" which
indeed traverses the symlink. So I cannot use it. So, any idea?
And I wouldn't use the Carbon APIs because I need to compile for 64 bit.
Thank you.

Leonardo


_______________________________________________

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

  • Follow-Ups:
    • Re: IsReadableFileAtPath
      • From: Kevin Perry <email@hidden>
    • Re: IsReadableFileAtPath
      • From: Jens Alfke <email@hidden>
    • Re: IsReadableFileAtPath
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Audio APIs [Carbon is C++?]
  • Next by Date: Re: Connecting Outlet on Derived Array Controller
  • Previous by thread: Re: Customize UIBarButtonItem
  • Next by thread: Re: IsReadableFileAtPath
  • Index(es):
    • Date
    • Thread