diff --git a/watch/polling.go b/watch/polling.go index 10a17eb..ae9a353 100644 --- a/watch/polling.go +++ b/watch/polling.go @@ -91,6 +91,12 @@ func (fw *PollingFileWatcher) ChangeEvents(t *tomb.Tomb, origFi os.FileInfo) *Fi prevSize = fw.Size continue } + // File got bigger? + if prevSize > 0 && prevSize < fw.Size { + changes.NotifyModified() + prevSize = fw.Size + continue + } prevSize = fw.Size // File was appended to (changed)?