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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to