Re: Directory enumeration gives wrong file type for aliases
Re: Directory enumeration gives wrong file type for aliases
- Subject: Re: Directory enumeration gives wrong file type for aliases
- From: Quincey Morris <email@hidden>
- Date: Fri, 07 Oct 2016 15:13:39 -0700
- Feedback-id: 167118m:167118agrif8a:167118sB_IqVB1yv:SMTPCORP
On Oct 7, 2016, at 08:21 , Gabriel Zachmann <email@hidden> wrote:
>
> I would at least attributesOfItemAtPath:error expect to show NSFileTypeSymbolicLink for the aliases and symlinks.
No, aliases are files, not symbolic links. Symbolic links are a special category of file system objects in a Unix-compatible file system. To tell the difference between an alias file and a non-alias file, use the NSURL “isAliasFile” resource key.
(And you should be using URLs generally, instead of paths.)
_______________________________________________
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