emcrisostomo / fswatch

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.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
5.04k stars 328 forks source link

-1 flag prints the file changed 3x before exiting #256

Closed jleider closed 3 years ago

jleider commented 4 years ago

Ubuntu 20.04, fswatch 1.14.0

Even with the -1 flag I get 3x the number of lines output vs on mac where I only see 1.

On Linux
$ fswatch -1 /path
/path/file.ext
/path/file.ext
/path/file.ext

On Mac:
$ fswatch -1 /path
/path/file.ext

This might be related to #255

emcrisostomo commented 3 years ago

Different OS behave differently, output can't be guaranteed to be the same. Have you tried printing the event flags to see what's being reported?

emcrisostomo commented 3 years ago

See #255 (fixed in master)