> On Dec 1, 2015, at 11:27 AM, Jens Alfke <[email protected]> wrote: > >> >> On Dec 1, 2015, at 4:03 AM, Leonardo <[email protected]> wrote: >> >> NSURLIsAliasFileKey returns YES even in case of SymLinks. >> And I need to return YES only in case of Aliases. > > Then call lstat() to check if it’s a symlink.
Or use resourceValuesForKeys:error: instead of getResource:forKey:error:, and add ask for NSURLIsSymbolicLinkKey as well as NSURLIsAliasFileKey. Charles _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
