A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
fswatch implements ~three kind~four kinds of monitors
DESCRIPTION
The fswatch command receives notifications when the contents of the specified files or directories are modified. fswatch implements three kind of monitors:
- A monitor based on the File System Events API of Apple OS X.
- A monitor based on kqueue, an event notification interface introduces in FreeBSD 4.1 and supported on most *BSD systems (including OS X).
- A monitor based on inotify, a Linux kernel subsystem that reports file system changes to applications.
- A monitor which periodically stats the file system, saves file modification times in memory and manually calculates changes.