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 (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