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: Lee Gillen <email@hidden>
- Date: Thu, 8 Apr 2010 14:08:52 -0400
On Thu, Apr 8, 2010 at 1:58 PM, Jens Alfke <email@hidden> wrote:
> Maybe you should describe in detail what you're trying to do? There might be
> a better way to approach the problem.
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.
'fuser' is a command line utility that tell you what app PID has the
file open. I see that if I pass 'fuser' the file path I see that
Finder has the file open.
_______________________________________________
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