diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/watcher.go b/watcher.go index 4da4dfe..d60e2d7 100644 --- a/watcher.go +++ b/watcher.go @@ -633,7 +633,7 @@ func (w *Watcher) pollEvents(files map[string]os.FileInfo, evt chan Event, creates[path] = info continue } - if oldInfo.ModTime() != info.ModTime() { + if oldInfo.ModTime() != info.ModTime() || oldInfo.Size() != info.Size() { select { case <-cancel: return