• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does Finder determine when a file is busy being written to the disk?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How does Finder determine when a file is busy being written to the disk?
      • From: Lee Gillen <email@hidden>
References: 
 >How does Finder determine when a file is busy being written to the disk? (From: Lee Gillen <email@hidden>)

  • Prev by Date: Re: Character Map
  • Next by Date: Re: Wondering about that iPad page curling
  • Previous by thread: How does Finder determine when a file is busy being written to the disk?
  • Next by thread: Re: How does Finder determine when a file is busy being written to the disk?
  • Index(es):
    • Date
    • Thread