[haiku-development] Re: Entry rename and queries

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 24 Nov 2009 08:50:40 +0100

Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> On 2009-11-23 at 23:24:57 [+0100], Laurent Humbertclaude 
> <laurent.humbertclaude@xxxxxxxxx> wrote:
> > Is there a way to watch for an entire directory and any 
> > subdirectory?
> Nope. We (Axel and I) considered implementing this, but were a bit 
> undecided 
> as it would add a bit of additional overhead to the checks whether a 
> certain 
> change requires sending a notification (one would need to iterate 
> through the 
> list of ancestor directories up to the root of the volume).

Actually, we have written a userland solution called BPathMonitor (see 
headers/private/storage/PathMonitor.h and src/kits/storage/PathMonitor.
cpp). This is still experimental at this point, though, so you may want 
to copy it verbatim to use in your own projects.

Bye,
   Axel.


Other related posts: