Skip watcher event files if matched in ignoreFiles

This commit is contained in:
Kris Budhram authored and Bjørn Erik Pedersen committed 2018-11-02 09:50:31 +01:00
1 parent d523aa4bb0
commit f8446188db
1 file changed
+3
+3
View File
@@ -839,6 +839,9 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
if istemp {
continue
}
if c.hugo.Deps.SourceSpec.IgnoreFile(ev.Name) {
continue
}
// Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these
if ev.Name == "" {
continue