We have an implementation based on inotify in our project: http://doublecmd.svn.sourceforge.net/viewvc/doublecmd/branches/0.5/src/platform/unix/inotify.pp http://doublecmd.svn.sourceforge.net/viewvc/doublecmd/branches/0.5/src/platform/ufilesystemwatcher.pas
It has only been tested to work on directories. However, as the docs say: "Inotify monitoring of directories is not recursive: to monitor subdirectories under a directory, additional watches must be created." Our implementation is directed at handling few directories, so you would need to optimize it to handle thousands of directories. -- cobines _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal