• 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 20:25:03 -0700

That may be true, but it's not directly related to the Finder graying out the source file. As I said, it grays out the file when it itself starts copying it. It has no way of telling when some other process is doing the copy.

--Jens {via iPad}

On Apr 7, 2010, at 5:16 PM, Lee Gillen <email@hidden> wrote:

> On Wed, Apr 7, 2010 at 7:53 PM, Jens Alfke <email@hidden> wrote:
>
>> 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.
>
> But I think what is happening is there is an FSEvent when the
> placeholder file is created at the destination. This file has a file
> size of 0 bytes. When the file is finished being written the file is
> swapped out with the placeholder file. This raises a 2nd FSEvent.
> Reading the file size on the second event shows the full file size.
>
> It looks to me like 'cp' doesn't show the file at all until it is
> finished writing.
_______________________________________________

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>)
 >Re: How does Finder determine when a file is busy being written to the disk? (From: Jens Alfke <email@hidden>)
 >Re: How does Finder determine when a file is busy being written to the disk? (From: Lee Gillen <email@hidden>)

  • Prev by Date: Problem with vCard and AddressBook ABPerson UID, HELP!!
  • Next by Date: Re: Alternative Location of Cocoa ID3 Framework??
  • Previous by thread: Re: 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