EnumeratorAtPath and duplicate files during drag to open
EnumeratorAtPath and duplicate files during drag to open
- Subject: EnumeratorAtPath and duplicate files during drag to open
- From: Trygve Inda <email@hidden>
- Date: Thu, 04 Feb 2010 05:06:48 +0000
- Thread-topic: EnumeratorAtPath and duplicate files during drag to open
If a user drags 3 Finder objects to my "file processor" app...
DirectoryA
FileA
FileB
And FileA is in the directory tree below DirectoryA, what is the best way to
avoid processing the file twice?
When I get the array of paths in my drop handler, when I see the directory,
I use EnumeratorAtPath to process the tree, but don't want to re-process
files.
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.
Do I just need to keep a temporary array of paths that I have processed and
search it for each file... Could be a lot of searching if the user drops the
entire Documents folder.
Thoughts?
Trygve
_______________________________________________
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