Re: IsReadableFileAtPath
Re: IsReadableFileAtPath
- Subject: Re: IsReadableFileAtPath
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 1 Mar 2010 12:29:04 -0700
On Mar 1, 2010, at 12:20 PM, gMail.com wrote:
> 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?
Maybe lstat() would better suit your needs?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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