backend: don't watch inotification under .tmp

This commit is contained in:
nemunaire 2017-11-22 02:38:06 +01:00 committed by Pierre-Olivier Mercier
parent 3f13d81eb3
commit 557b576da5

View File

@ -31,7 +31,7 @@ func watchsubdir(watcher *fsnotify.Watcher, pathname string) error {
} else {
for _, d := range ds {
p := path.Join(pathname, d.Name())
if d.IsDir() {
if d.IsDir() && d.Name() != ".tmp" {
if err := watchsubdir(watcher, p); err != nil {
return err
}