Skip watcher event files if matched in ignoreFiles

This commit is contained in:
Kris Budhram 2018-10-14 23:04:52 -04:00 committed by Bjørn Erik Pedersen
parent d523aa4bb0
commit f8446188db

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