[ANN] DirectoryWatcher 0.8

G

Gavin Kistner

http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html

A DirectoryWatcher keeps an eye on a certain directory, firing off your
own custom procs when a file is added to, modified in, or removed from
that directory.

See the link above for documentation. Download available from
http://phrogz.net/RubyLibs/DirectoryWatcher.rb


Feedback requested; am I doing something in this brief bit of code in
an un-ruby-like way? In a terribly inefficient way? Is there a better
way to 'pause' and 'restart' the thread tracked as @Thread?

Help me help you! :)
 
K

Kirk Haines

http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html

A DirectoryWatcher keeps an eye on a certain directory, firing off
your own custom procs when a file is added to, modified in, or
removed from that directory.

See the link above for documentation. Download available from
http://phrogz.net/RubyLibs/DirectoryWatcher.rb

Feedback requested; am I doing something in this brief bit of code
in an un-ruby-like way? In a terribly inefficient way? Is there a
better way to 'pause' and 'restart' the thread tracked as @thread?

Help me help you! :)

Awesome. I have a use for it _today_. I'll let you know if I run into
anything that seems to me to be a problem.


Thanks,

Kirk Haines
 
A

Ara.T.Howard

http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html

A DirectoryWatcher keeps an eye on a certain directory, firing off your
own custom procs when a file is added to, modified in, or removed from
that directory.

See the link above for documentation. Download available from
http://phrogz.net/RubyLibs/DirectoryWatcher.rb


Feedback requested; am I doing something in this brief bit of code in
an un-ruby-like way? In a terribly inefficient way? Is there a better
way to 'pause' and 'restart' the thread tracked as @thread?

Help me help you! :)

awesome! i seriously just started coding this myself this morning - i'll
check it out soon.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================
 
C

Carl Youngblood

Here is a similar tool:

http://www.jhorman.org/FileSystemWatcher/index.html


http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html

A DirectoryWatcher keeps an eye on a certain directory, firing off your
own custom procs when a file is added to, modified in, or removed from
that directory.

See the link above for documentation. Download available from
http://phrogz.net/RubyLibs/DirectoryWatcher.rb


Feedback requested; am I doing something in this brief bit of code in
an un-ruby-like way? In a terribly inefficient way? Is there a better
way to 'pause' and 'restart' the thread tracked as @thread?

Help me help you! :)

awesome! i seriously just started coding this myself this morning - i'll
check it out soon.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================
 
D

David Ross

oh neat. what if the file attributes are modified?
date, time, access flags?

--dross

--- Gavin Kistner said:
http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html

A DirectoryWatcher keeps an eye on a certain
directory, firing off your
own custom procs when a file is added to, modified
in, or removed from
that directory.

See the link above for documentation. Download
available from
http://phrogz.net/RubyLibs/DirectoryWatcher.rb


Feedback requested; am I doing something in this
brief bit of code in
an un-ruby-like way? In a terribly inefficient way?
Is there a better
way to 'pause' and 'restart' the thread tracked as
@thread?

Help me help you! :)




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,699
Latest member
Abigail89S

Latest Threads

Top