On Apr 8, 2010, at 11:08 AM, Lee Gillen wrote:

My app watches a folder using FSEvents to see when files are added to
it and then uploads those files to a server. It's kind of like a hot
folder. The issue is that when users are copying large files,
especially from a network drive, the upload will begin before the file
has been completely written to the disk.

Apple's Folder Actions feature runs into this issue too. I suspect they use a heuristic like waiting for the file's mod date and size to stop changing for a few seconds, but I'm not sure.

You should ask on the darwin-userlevel or darwin-dev lists, where the real Unix graybeards hang out.

—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