• 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: file done writing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file done writing?


  • Subject: Re: file done writing?
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 12 Apr 2011 09:44:42 +0200

On 11.04.2011, at 07:18, Gary L. Wade wrote:
> You might find the
> FSEvents mechanism something to consider if you're watching a dump folder
> where the originator application is something you have no control over.
> There are also very-Darwin-level mechanisms for seeing if a file is open,
> but those are not guaranteed to remain the same from one patch release to
> the next.

 There's also the BSD kqueue mechanism, You could use this to watch the parent folder, and once you find your file hasn't changed in a while, assume it's done and just try using it.

 I have a bunch of file watching classes (for FSEvents, FNNotify and KQueue) at http://www.github.com/uliwitness/UliKit

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de



_______________________________________________

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: file done writing?
      • From: Rainer Standke <email@hidden>
References: 
 >Re: file done writing? (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Getting mms (wma) stream
  • Next by Date: Re: Can an image be "rejected" by CALayer?
  • Previous by thread: Re: file done writing?
  • Next by thread: Re: file done writing?
  • Index(es):
    • Date
    • Thread