3 ms·
I've been using fswatch to great effect. The big advantage is that it's truly cross-platform, falling back to polling if no fs notification system is available
by lloeki 4y ago
I've been using fswatch to great effect. The big advantage is that it's truly cross-platform, falling back to polling if no fs notification system is available as long as stat(2) works.
Very composable as you just pipe its output to whatever you want (typically a while read do end), so exclusion is a awk/sed/perl/grep/rg away, and command can be as simple or complex as it needs to while the tool itself stays lean.
Cool features include -o to just be notified that something changed (e.g to fire up rsync), and ability to batch changes.
Also the command is a front end to libfswatch, so one can use that directly if shelling is to be foregone.
https://github.com/emcrisostomo/fswatch https://github.com/emcrisostomo/fswatch
- chmaynard 4y ago> If you are installing fswatch using a package manager and you would like the PDF manual to be bundled into the package, please send a feature request to the package maintainer. I can't find the PDF manual in the repo. Do I need to contact the author and say please?
- chmaynard 4y agoFound it: https://emcrisostomo.github.io/fswatch/doc/1.17.1/fswatch.pdf https://emcrisostomo.github.io/fswatch/doc/1.17.1/fswatch.pd...