Subject: Re: Comparing path strings

On Mar 26, 2009, at 10:39 PM, Adam R. Maxwell wrote:

On Mar 26, 2009, at 7:14 PM, Gregory Weston wrote:

Jean-Daniel Dupas wrote:

An other way may be to convert them into FSRef (using FSPathMakeRef())
and then compare them using FSCompareFSRefs()

There's a risk to that solution, though. A longstanding bug (2489632) in FSPathMakeRef (and thus with a few other routines that apparently use it) whereby symlinks are silently resolved. Depending on your needs, that may be a show-stopper.

Does FSPathMakeRefWithOptions with kFSPathMakeRefDoNotFollowLeafSymlink take care of that?

If it's available, yes. And I should have noted it but, in all honesty, I simply forgot it exists.

Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)

Help/Unsubscribe/Update your Subscription:

This email sent to maillists@xxxxxxxxx