Re: Identifying directory changes with kqueue/kevent
Re: Identifying directory changes with kqueue/kevent
- Subject: Re: Identifying directory changes with kqueue/kevent
- From: Dave Zarzycki <email@hidden>
- Date: Wed, 19 Sep 2007 08:56:30 -0700
It sounds like you want the new FSEvents API in Leopard.
On Sep 19, 2007, at 8:43 AM, Fred Leboucher wrote:
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
_______________________________________________
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