Re: File System changes notifications
Re: File System changes notifications
- Subject: Re: File System changes notifications
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 15 Feb 2006 11:58:38 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Feb 15, 2006, at 10:57 AM, Sean McBride wrote:
On 2006-02-15 18:03, email@hidden said:
I need to know about ALL changes made to the file system by ALL
applications not only my own.
<x-man-page://2/kqueue>
kqueue is not a solution in this case, as you'd have to add a
separate watch for every directory and file in the filesystem to get
ALL changes. For this case, you'd want to use Tiger's new fsevents
API - this is what spotlight uses to update it's index.
Unfortunately, the fsevents API is not documented and Apple considers
it a private interface.
However, the kernelthread.com forums did contain some code that used
this interface to print a log of events as they occurred. But, those
forums are now unavailable. Google has a cache though:
<http://72.14.207.104/search?q=cache:_3Nf0CdAOxEJ:kernelthread.com/
forums/viewtopic.php?p=629&sid%
3D2a60d17ecc5806f0305077e0ffc9daba+tiger
+fsevents&hl=en&gl=us&ct=clnk&cd=2&client=safari>
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFD82vTedHYW7bHtqIRAnc/AJ47yalijV14/NGINLzRMk1dD75ZVQCgkYYT
c2hfaWafYc39jvw8sKmKo20=
=FTzT
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden