• 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: Comparing path strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing path strings


  • Subject: Re: Comparing path strings
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Thu, 26 Mar 2009 19:39:43 -0700


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?



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Comparing path strings
      • From: Gregory Weston <email@hidden>
    • Re: Comparing path strings
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Re: Comparing path strings (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: NSFileManager: can't set group ID on 10.4
  • Next by Date: NSKeyedUnarchiver "incomprehensible archive" error
  • Previous by thread: Re: Comparing path strings
  • Next by thread: Re: Comparing path strings
  • Index(es):
    • Date
    • Thread