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:

http://raa.ruby-lang.org/project/dirwatch/

I’ve never used it myself, however.

HTH,

Dan

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