# Monitoring the directory

**URL:** <https://www.ruby-forum.com/t/monitoring-the-directory/196923>\
**Category:** Ruby\
**Created:** [March 21, 2009, 8:11am UTC](https://www.ruby-forum.com/t/monitoring-the-directory/196923 "2009-03-21T08:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loganathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@loganathan](https://www.ruby-forum.com/u/loganathan)\
**Post date:** [March 21, 2009, 8:11am UTC](https://www.ruby-forum.com/t/monitoring-the-directory/196923/1 "2009-03-21T08:11:26Z")

</div>

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

monitoring in the sense,  
\* When ever a new file is created or removed inside that  
directory  
\* 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

---

<div class="post-metadata">

**Author:** ![loganathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@loganathan](https://www.ruby-forum.com/u/loganathan)\
**Post date:** [March 21, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/monitoring-the-directory/196923/2 "2009-03-21T15:34:19Z")

</div>

On Sat, Mar 21, 2009 at 7:08 AM, Loga G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

$ sudo gem install directory\_watcher file-tail

> **[GitHub - TwP/directory\_watcher: Event notification for file system changes](https://github.com/TwP/directory_watcher/tree/master)**
>
> master

[http://file-tail.rubyforge.org/](http://file-tail.rubyforge.org/)

HTH  
Sean

---

<div class="post-metadata">

**Author:** ![loganathan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@loganathan](https://www.ruby-forum.com/u/loganathan)\
**Post date:** [March 23, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/monitoring-the-directory/196923/3 "2009-03-23T13:23:31Z")

</div>

Sean O’halpin wrote:

> On Sat, Mar 21, 2009 at 7:08 AM, Loga G.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Likewise , is there any standard module available in ruby to monitor a  
> > file growth
> 
> $ sudo gem install directory\_watcher file-tail
> 
> [GitHub - TwP/directory\_watcher: Event notification for file system changes](http://github.com/TwP/directory_watcher/tree/master)
> 
> [http://file-tail.rubyforge.org/](http://file-tail.rubyforge.org/)
> 
> HTH  
> Sean

Ya both the modules are working fine. Thank you for your reply.
