[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] directory_watcher (version 1.2.0

Tim Pease

4/12/2009 5:45:00 PM

directory_watcher version 1.2.0
by Tim Pease
http://codeforpeople.rubyforge.org/directo...

== DESCRIPTION

The directory watcher operates by scanning a directory at some
interval and
generating a list of files based on a user supplied glob pattern. As
the file
list changes from one interval to the next, events are generated and
dispatched to registered observers. Four types of events are supported
--
added, modified, stable, and removed.

== CHANGES

* 2 minor enhancements
- added an option to persist state to a file [Benjamin Thomas]
- the option to run the directory watcher scanner manually
(i.e. one loop at a time)



2 Answers

Denis Defreyne

4/12/2009 7:23:00 PM

0

12 apr 2009 kl. 19.44 skrev Tim Pease:

> The directory watcher operates by scanning a directory at some
> interval and
> generating a list of files based on a user supplied glob pattern.

Hi,

directory_watcher sounds like the ideal candidate to make use of
filesystem event notifications such as those provided by inotify or
fsevents. Are there any plans for this in a future version of
directory_watcher?

Regards,

Denis

--
Denis Defreyne
denis.defreyne@stoneship.org


Tony Arcieri

4/12/2009 9:25:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

On Sun, Apr 12, 2009 at 1:23 PM, Denis Defreyne <
denis.defreyne@stoneship.org> wrote:

> directory_watcher sounds like the ideal candidate to make use of filesystem
> event notifications such as those provided by inotify or fsevents. Are there
> any plans for this in a future version of directory_watcher?
>

Note that such a thing would be fairly trivial to add to Rev, as libev
already supports a cross-platform API for directory monitoring which uses
inotify on Linux:

http://rev.ruby...

--
Tony Arcieri
medioh.com