# \[ANN\] dirwatch-0.0.3

**URL:** <https://rubytalk.org/t/ann-dirwatch-0-0-3/14245>\
**Category:** ruby-talk\
**Created:** [16 October 2004 01:47 UTC](https://rubytalk.org/t/ann-dirwatch-0-0-3/14245 "2004-10-16T01:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Pena\_Botp1](https://avatars.discourse-cdn.com/v4/letter/_/94ad74/32.png) [@\_Pena\_Botp1](https://rubytalk.org/u/_Pena_Botp1)\
**Post date:** [16 October 2004 01:47 UTC](https://rubytalk.org/t/ann-dirwatch-0-0-3/14245/1 "2004-10-16T01:47:41Z")

</div>

I guess this is different from directorywatcher, no?  
Do you have rpa version?

kind regards -botp

> **···**
>
> Ara.T.Howard [mailto:Ara.T.Howard@noaa.gov] wrote:
> 
> > Subject: [ANN] dirwatch-0.0.3

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [16 October 2004 02:24 UTC](https://rubytalk.org/t/ann-dirwatch-0-0-3/14245/2 "2004-10-16T02:24:28Z")

</div>

> I guess this is different from directorywatcher, no?

quite a bit. dirwatch maintains a database mirror of a directory's contents.  
the contents are compared against the database each time dirwatch is run and  
certain configurable actions taken. note that it does not run constantly and,  
since it maintains state, be cron'd at certain itervals. it should be nfs  
clean (including running on the same directory using the same log file from  
different hosts simoultaneously). the actions can be configured to easily  
handle directories containing several hundred thousand files. because of it's  
nature (stateful and periodic) you also detect 'existing' files using it to  
implement a kind of smart tmpwatch.

> Do you have rpa version?

not yet - i haven't exactly desided how to handle dependancies and am thinking  
of doing something like

&nbsp;&nbsp;&nbsp;file dirwatch/lib/arrayfields.rb

&nbsp;&nbsp;&nbsp;begin  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require 'arrayfields'  
&nbsp;&nbsp;&nbsp;rescue LoadError  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(inline arrayfields)  
&nbsp;&nbsp;&nbsp;end

so that the user need download only one package... also there are some  
changes on the horzion to sqlite that i'm not sure how to handle... also it's  
quite young (though we are using in production like all of our 'experimental'  
software ;-))

cheers.

-a

> **···**
>
> # On Sat, 16 Oct 2004, [iso-8859-1] "Peña, Botp" wrote: --
> 
> > EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov  
> > PHONE :: 303.497.6469  
> > When you do something, you should burn yourself completely, like a good  
> > bonfire, leaving no trace of yourself. --Shunryu Suzuki
> 
> ===============================================================================
