• 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: Thu, 8 Apr 2010 14:27:01 -0700


On Apr 8, 2010, at 11:08 AM, Lee Gillen wrote:

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.

Apple's Folder Actions feature runs into this issue too. I suspect they use a heuristic like waiting for the file's mod date and size to stop changing for a few seconds, but I'm not sure.


You should ask on the darwin-userlevel or darwin-dev lists, where the real Unix graybeards hang out.

—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


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>)
 >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>)
 >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: Re: What gets automatically localized?
  • Next by Date: NSPredicateEditor, _NSRuleEditorViewUnboundRowHolder and boundArray error moving to 10.6
  • 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