• 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: EnumeratorAtPath and duplicate files during drag to open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EnumeratorAtPath and duplicate files during drag to open


  • Subject: Re: EnumeratorAtPath and duplicate files during drag to open
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 3 Feb 2010 22:07:23 -0800

On Feb 3, 2010, at 9:06 PM, Trygve Inda wrote:

> This becomes a real issue if someone drops DirectoryA and DirectoryB if
> DirectoryB is in the tree below DirectoryA... Since a bunch of files could
> be re-processed.

Convert each input path into canonical form (to resolve symlinks), sort them alphabetically, then go through the list and discard any path that has the preceding path as a prefix (being careful not to match partial filenames, e.g. /foo/bar is not a prefix of /foo/barbell. Making sure directory paths end in "/" should take care of that.)

—Jens_______________________________________________

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

References: 
 >EnumeratorAtPath and duplicate files during drag to open (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Help with NSData dataWithContentsOfURL
  • Next by Date: Re: EnumeratorAtPath and duplicate files during drag to open
  • Previous by thread: EnumeratorAtPath and duplicate files during drag to open
  • Next by thread: Re: EnumeratorAtPath and duplicate files during drag to open
  • Index(es):
    • Date
    • Thread