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: Wed, 7 Apr 2010 16:53:37 -0700
On Apr 7, 2010, at 4:31 PM, Lee Gillen wrote:
When copying large files (over a GB each) from a network drive to a
local drive Finder shows these files are busy by graying their
filename out until they are finished writing to the local system.
I think the Finder only knows that because it's the one doing the
copying. If something else is copying a file (like the 'cp' command)
the Finder doesn't gray out the file.
Unix doesn't really have a notion of a file being "busy", except via
higher level mechanisms like exclusive locks. In general, I think it's
difficult to figure out if some other process has opened a file. The
'lsof' tool does it, but I think it uses privileged system calls.
—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