Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Monitoring folder for changes
Felipe Coury
3/27/2009 11:40:00 PM
Is there any gem or code example that would help me to watch a given
folder for changes and trigger a callback upon change detection?
Thanks!
-- Felipe
--
Posted via
http://www.ruby-...
.
3 Answers
ara.t.howard
3/27/2009 11:46:00 PM
0
On Mar 27, 2009, at 5:39 PM, Felipe Coury wrote:
> Is there any gem or code example that would help me to watch a given
> folder for changes and trigger a callback upon change detection?
>
> Thanks!
>
> -- Felipe
> --
> Posted via
http://www.ruby-...
.
>
sudo gem install directory_watcher
a @
http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama
Felipe Coury
3/27/2009 11:53:00 PM
0
Ara Howard wrote:
> sudo gem install directory_watcher
> a @
http://codeforp...
Now that was fast! Thanks Ara!
Best regards,
-- Felipe
--
Posted via
http://www.ruby-...
.
Brian Adkins
3/28/2009 1:23:00 PM
0
Felipe Coury <felipe.coury@gmail.com> writes:
> Ara Howard wrote:
>> sudo gem install directory_watcher
>> a @
http://codeforp...
>
> Now that was fast! Thanks Ara!
If speed is more important than portability, you may want to consider utilizing operating specific features. I believe Linux, OSX & Windows all provide notifications of changes to the file system so you wouldn't have to periodically poll.
--
Brian Adkins
http://...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Monitoring folder for changes
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password