# Directory monitoring

**URL:** <https://rubytalk.org/t/directory-monitoring/52421>\
**Category:** ruby-talk\
**Created:** [21 March 2009 05:52 UTC](https://rubytalk.org/t/directory-monitoring/52421 "2009-03-21T05:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loga\_Ganesan](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Loga\_Ganesan](https://rubytalk.org/u/Loga_Ganesan)\
**Post date:** [21 March 2009 05:52 UTC](https://rubytalk.org/t/directory-monitoring/52421/1 "2009-03-21T05:52:11Z")

</div>

Hi  
&nbsp;&nbsp;&nbsp;Is there any pre-defined module available in ruby to monitor a given  
directory.

monitoring in the sense,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* When ever a new file is created or removed inside that  
directory  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* When ever a new directory is created or removed inside that  
directory

Likewise , is there any standard module available in ruby to monitor a  
file growth

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Gavin\_Kistner3](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@Gavin\_Kistner3](https://rubytalk.org/u/Gavin_Kistner3)\
**Post date:** [21 March 2009 14:52 UTC](https://rubytalk.org/t/directory-monitoring/52421/2 "2009-03-21T14:52:11Z")

</div>

Loga Ganesan wrote:

> &nbsp;&nbsp;&nbsp;Is there any pre-defined module available in ruby to monitor a given  
> directory.

Yes, there are at least two.  
[http://tinyurl.com/ruby-watch-directory](http://tinyurl.com/ruby-watch-directory)
