Re: How does Finder determine when a file is busy being written to the disk?
Re: How does Finder determine when a file is busy being written to the disk?
- Subject: Re: How does Finder determine when a file is busy being written to the disk?
- From: Jens Alfke <email@hidden>
- Date: Thu, 8 Apr 2010 14:27:01 -0700
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 (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