• 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: Directory enumeration gives wrong file type for aliases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Directory enumeration gives wrong file type for aliases (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: How to count Atoms
  • Next by Date: Re: Directory enumeration gives wrong file type for aliases
  • Previous by thread: Directory enumeration gives wrong file type for aliases
  • Next by thread: Re: Directory enumeration gives wrong file type for aliases
  • Index(es):
    • Date
    • Thread