A cross-platform file change monitor with multiple backends - fswatch
Published Date: 2024-05-01
fswatch is a free and open-source file monitoring tool for macOS. It watches files and directories for changes and runs user-defined commands when changes are detected. fswatch is a powerful tool that can be used for a variety of tasks, such as:
* Monitoring log files for changes * Triggering builds or tests when code changes * Watching for changes to configuration files
fswatch: A cross-platform file change monitor with multiple backends: Apple OS X File System Events API, BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify and a stat()-based backend. fswatch is a file change monitor that receives notifications when the contents of the specified files or directories are modified. fswatch implements four kinds of monitors. A monitor based on the File System Events API of Apple OS X. A monitor based on kqueue, an event notification interface introduced 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 based on File Events Notification, a Solaris/Illumos kernel API that reports file events. A monitor based on ReadDirectoryChangesW, a Microsoft Windows API that reports changes to a directory.