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
···
On Wed, 22 Sep 2004 23:22:39 +0900, Gavin Kistner wrote
Class: Dir::DirectoryWatcher
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
···
On Wed, 22 Sep 2004, Gavin Kistner wrote:
Class: Dir::DirectoryWatcher
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! 
--
(-, /\ \/ / /\/
--
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
===============================================================================
oh neat. what if the file attributes are modified?
date, time, access flags?
--dross
http://phrogz.net/RubyLibs/rdoc/classes/Dir/DirectoryWatcher.html
···
--- Gavin Kistner <gavin@refinery.com> wrote:
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