openbsd-ports/sysutils/p5-Filesys-Notify-Simple/pkg/DESCR
landry 8ced82a6ef Import p5-Filesys-Notify-Simple:
Filesys::Notify::Simple is a simple but unified interface to get
notifications of changes to a given filesystem path. It utilizes
inotify2 on Linux and fsevents on OS X if they're installed, with a
fallback to the full directory scan if they're not available.

(note from importer: it could use a kqueue/libevent backend instead of a
gross full scan every 2 secs, which is not even configurable :)

From Abel Abraham Camarillo Ojeda on ports@
2010-12-11 09:41:40 +00:00

16 lines
680 B
Plaintext

Filesys::Notify::Simple is a simple but unified interface to get
notifications of changes to a given filesystem path. It utilizes
inotify2 on Linux and fsevents on OS X if they're installed, with a
fallback to the full directory scan if they're not available.
There are some limitations in this module. If you don't like it, use
File::ChangeNotify.
* There is no file name based filter. Do it in your own code.
* You can not get types of events (created, updated, deleted).
* Currently wait method blocks.
In return, this module doesn't depend on any non-core modules. Platform
specific optimizations with Linux::Inotify2 and Mac::FSEvents are truely
optional.