lib/fs: Catch size-preserving changes on windows (fixes #5050) (#5056)

This commit is contained in:
Simon Frei 2018-07-09 19:29:22 +02:00 committed by Audrius Butkevicius
parent 742ab17a2a
commit 409cb2beb8

View File

@ -11,7 +11,7 @@ package fs
import "github.com/syncthing/notify" import "github.com/syncthing/notify"
const ( const (
subEventMask = notify.FileNotifyChangeFileName | notify.FileNotifyChangeDirName | notify.FileNotifyChangeSize | notify.FileNotifyChangeCreation subEventMask = notify.FileNotifyChangeFileName | notify.FileNotifyChangeDirName | notify.FileNotifyChangeSize | notify.FileNotifyChangeCreation | notify.FileNotifyChangeLastWrite
permEventMask = notify.FileNotifyChangeAttributes permEventMask = notify.FileNotifyChangeAttributes
rmEventMask = notify.FileActionRemoved | notify.FileActionRenamedOldName rmEventMask = notify.FileActionRemoved | notify.FileActionRenamedOldName
) )