Re: Comparing path strings
Re: Comparing path strings
- Subject: Re: Comparing path strings
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 27 Mar 2009 09:40:15 +0100
Le 27 mars 09 à 03:39, Adam R. Maxwell a écrit :
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?
Yes, it does.
_______________________________________________
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