From 409cb2beb85f542ba85ce35550ddcd5795404ee4 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 9 Jul 2018 19:29:22 +0200 Subject: [PATCH] lib/fs: Catch size-preserving changes on windows (fixes #5050) (#5056) --- lib/fs/basicfs_watch_eventtypes_readdcw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs/basicfs_watch_eventtypes_readdcw.go b/lib/fs/basicfs_watch_eventtypes_readdcw.go index 72ed87b24..b9b73f303 100644 --- a/lib/fs/basicfs_watch_eventtypes_readdcw.go +++ b/lib/fs/basicfs_watch_eventtypes_readdcw.go @@ -11,7 +11,7 @@ package fs import "github.com/syncthing/notify" const ( - subEventMask = notify.FileNotifyChangeFileName | notify.FileNotifyChangeDirName | notify.FileNotifyChangeSize | notify.FileNotifyChangeCreation + subEventMask = notify.FileNotifyChangeFileName | notify.FileNotifyChangeDirName | notify.FileNotifyChangeSize | notify.FileNotifyChangeCreation | notify.FileNotifyChangeLastWrite permEventMask = notify.FileNotifyChangeAttributes rmEventMask = notify.FileActionRemoved | notify.FileActionRenamedOldName )