Identifying directory changes with kqueue/kevent
Identifying directory changes with kqueue/kevent
- Subject: Identifying directory changes with kqueue/kevent
- From: Fred Leboucher <email@hidden>
- Date: Wed, 19 Sep 2007 17:43:07 +0200
Hi,
I'm trying to watch a directory for changes, so the couple kqueue/
kevent could do the job (aside from the Carbon FNSubscribe). Only
problem is that, like FNSubscribe, kqueue/kevent can't tell what file
in the directory changed (or maybe I missed something ?).
So, is there any simple way to identify the changed file, or do I
have to keep track of all files in the directory, and compare this to
the directory every time a change occurs ? This could be quite
expensive and handling events like file renaming would be a real pain...
Thanks
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden