[Mono-list] FileSystemWatcher

Rodrigo Moya rodrigo@ximian.com
28 Nov 2002 14:31:11 +0100


On Thu, 2002-11-28 at 13:43, Rodrigo Moya wrote:
> On Thu, 2002-11-28 at 06:27, Tum wrote:
> > Hi,
> > 
> > Has anyone given any thought to how to implement
> > System.IO.FileSystemWatcher?
> > 
> > I've thinking of using syscalltrack
> > (http://syscalltrack.sourceforge.net) to track IO calls.  It isn't
> > exactly portable tho....
> > 
> you can use GLib's GIOChannel's, which are already platform-independent.
> And GLib is already a dependency in Mono, so it's not a big problem,
> AFAIK.
> 
> Maybe there's a better Mono-ish way of doing it though.
> 
oops, sorry, I answered wrong, since what you want is a file system
watcher, not an 'opened files watcher'. So, using FAM, as suggested
seems the best idea so far. Although I recall some conversation in some
GNOME list recently about the problems with FAM (mainly, not being
available on all UNIX).

cheers
-- 
Rodrigo Moya <rodrigo@ximian.com>