Re: EnumeratorAtPath and duplicate files during drag to open
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