[fpc-pascal] File monitoring Linux
cobines
cobines at gmail.com
Tue Sep 13 15:38:02 CEST 2011
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
More information about the fpc-pascal
mailing list