• 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: How to ResolvingSymlinksInPath ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to ResolvingSymlinksInPath ?


  • Subject: Re: How to ResolvingSymlinksInPath ?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 04 Nov 2016 10:08:09 +0700

> On 3 Nov 2016, at 23:05, Jens Alfke <email@hidden> wrote:
>
> The docs for -stringByResolvingSymlinksInPath say that “for absolute paths, all symbolic links are guaranteed to be removed.” If it doesn’t actually do that, then there’s either a bug in the implementation or a bug in the docs; either way, you should file a Radar.

I seem to be remember that the special handling of “/private” paths (not parts) was documented once.
Maybe there was even a compelling reason given for this quirk.

URLByResolvingAliasFileAtURL does almost the same, has no special behaviour with “/private”, and even can resolve an alias.
But: only when this alias is the final component of a path.
I.e. /path/aliasToFoo will be resolved to /path/foo; but  /path/aliasToFoo/someFile will not.

Symlinks are resolved in any position.

>
> (I’m not sure why you need to remove all symlinks, but I’ll assume you have a good reason…)


I don’t know whether the reason is good, but I want to compare stuff returned from FSEventStreams.


Kind regards,

Gerriet.



_______________________________________________

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: How to ResolvingSymlinksInPath ?
      • From: Ken Thomases <email@hidden>
References: 
 >How to ResolvingSymlinksInPath ? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to ResolvingSymlinksInPath ? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to ResolvingSymlinksInPath ? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9
  • Next by Date: Re: How to ResolvingSymlinksInPath ?
  • Previous by thread: Re: How to ResolvingSymlinksInPath ?
  • Next by thread: Re: How to ResolvingSymlinksInPath ?
  • Index(es):
    • Date
    • Thread