[ANN] DirectoryWatcher 0.8

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! :slight_smile:

···

--
(-, /\ \/ / /\/

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! :slight_smile:

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! :slight_smile:
--
(-, /\ \/ / /\/

--

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! :slight_smile:
--
(-, /\ \/ / /\/

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

Here is a similar tool:

···

On Thu, 23 Sep 2004 02:04:38 +0900, ara.t.howard@noaa.gov <ara.t.howard@noaa.gov> wrote:

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! :slight_smile:
> --
> (-, /\ \/ / /\/

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