• 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: Identifying directory changes with kqueue/kevent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Identifying directory changes with kqueue/kevent
      • From: Fred Leboucher <email@hidden>
References: 
 >Identifying directory changes with kqueue/kevent (From: Fred Leboucher <email@hidden>)

  • Prev by Date: Identifying directory changes with kqueue/kevent
  • Next by Date: Re: Identifying directory changes with kqueue/kevent
  • Previous by thread: Identifying directory changes with kqueue/kevent
  • Next by thread: Re: Identifying directory changes with kqueue/kevent
  • Index(es):
    • Date
    • Thread