Leonardo wrote:

2) During the period of time the stream is off, if some new files arrive
within the folder /A, I lose the notification to copy it.

How to workaround that?


Make a directory adjacent to /A and /B to use as a staging area for copying. Only copy into the staging area.

http://en.wikipedia.org/wiki/Staging_area

When the copying of a file is complete, get its inode number. Then rename the copy from the staging area into the actual target folder. After the copying is complete, and the rename is ready to occur, ignore all events that have the file's inode number.

  -- GG

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to