diff options
Diffstat (limited to 'watcher/watcher_linux.go')
-rw-r--r-- | watcher/watcher_linux.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/watcher/watcher_linux.go b/watcher/watcher_linux.go new file mode 100644 index 0000000..a7a23cd --- /dev/null +++ b/watcher/watcher_linux.go @@ -0,0 +1,8 @@ +//go:build linux + +package watcher + +import "github.com/rjeczalik/notify" + +// Watch IN_CLOSE_WRITE events on Linux to reduce the number of events to process +const notifyFlag = notify.InCloseWrite | notify.InMovedFrom |