diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-09-18 00:22:25 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2021-09-18 00:22:25 +0200 |
commit | f501a8c6ec4538ff92e2e4af6824ec9b20131822 (patch) | |
tree | 7ef9bf2998550f94efacc305b32e38ec195c7d8f | |
parent | 96cdd967f054fb8bbc9575ecebbef2cc5a68a14f (diff) |
watcher: Stop watching renames
-rw-r--r-- | watcher/watcher_linux.go | 2 | ||||
-rw-r--r-- | watcher/watcher_notlinux.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/watcher/watcher_linux.go b/watcher/watcher_linux.go index a7a23cd..a3caa6b 100644 --- a/watcher/watcher_linux.go +++ b/watcher/watcher_linux.go @@ -5,4 +5,4 @@ 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 +const notifyFlag = notify.InCloseWrite diff --git a/watcher/watcher_notlinux.go b/watcher/watcher_notlinux.go index efd7ea8..6bdad95 100644 --- a/watcher/watcher_notlinux.go +++ b/watcher/watcher_notlinux.go @@ -4,4 +4,4 @@ package watcher import "github.com/rjeczalik/notify" -const notifyFlag = notify.Write | notify.Rename +const notifyFlag = notify.Write |