Re: Capturing file system events
Re: Capturing file system events
- Subject: Re: Capturing file system events
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 13 Nov 2003 16:25:37 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ken,
You should take a look at KQueues. These allow you to be notified of
file system events (and other types) in close to real time. No need for
a KEXT either.
KQueues are only available in Darwin 7 (Panther) though. Check out
/usr/include/sys/event.h.
HTH.
On Thursday, November 13, 2003, at 08:56 AM, Ken Tozier wrote:
>
A project I'm working on needs to be able to capture the following
>
three file system events in order to write those changes to a log
>
file:
>
- Container changed events (when file is moved from one directory to
>
another on the same volume)
>
- Name changed events
>
- File add events (when files are added to watch folders or any of the
>
watch folder's sub folders from a different volume)
>
>
AppleScript's folder actions are in the ball park conceptually, but
>
their inability to operate on closed folders and the fact that if
>
something in a deeply nested folder hierarchy changes, those changes
>
don't propagate to higher level directories, make folder actions
>
unsuitable for my needs.
>
>
Would a Kext be the place to capture these types of file events in
>
real time?
>
>
Ken Tozier
>
Brian Bergstrand <
http://www.classicalguitar.net/brian/>
PGP Key: <
http://www.classicalguitar.net/brian/misc/public_key.txt>
The United States is a nation of laws: badly written and randomly
enforced. - Frank Zappa
As of 04:20:57 PM, iTunes is playing "Head Down" from "Superunknown" by
"Soundgarden"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
iQA/AwUBP7P213nR2Fu2x7aiEQI/KwCfanjNrZehZAtu5dF9Cn8DgSZxdeoAn0nK
MXIDZsIe0H5H17TLnCOOkLh4
=4L70
-----END PGP SIGNATURE-----
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.