RE: FileSystemWatcher - has any one done this?

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Randy Parker
Sent: Tuesday, August 15, 2006 10:19 AM
To: [email protected]
Subject: Re: [Rails] FileSystemWatcher - has any one done this?

FreeBSD has kqueue, and Windows has a built-in feature as well. I’ve
done several polling routines using the opendir() syscall, and much
prefer kqueue. Webservers have well-written internal methods, but I
don’t know if they expose an API.

But the question remains “how to do it in a platform-independant way
from Ruby”. Polling will work, but if you want low-latency
notification, you’ll burn cpu.

There’s Ara Howard’s ‘dirwatch’ package on the RAA:

I’ve never used it myself, however.



This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.