Skip to content

Commit 8485b97

Browse files
author
xiaoyang-chen
committed
feat: only radovskyb-watcher update, merge radovskyb/watcher#127 for file size changes
1 parent 55bd74e commit 8485b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

radovskyb-watcher/watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ func (w *Watcher) pollEvents(files map[string]os.FileInfo, evt chan Event, cance
609609
creates[path] = info
610610
continue
611611
}
612-
if oldInfo.ModTime() != info.ModTime() {
612+
if oldInfo.ModTime() != info.ModTime() || oldInfo.Size() != info.Size() {
613613
select {
614614
case <-cancel:
615615
return

0 commit comments

Comments
 (0)