backend: don't watch inotification under .tmp
This commit is contained in:
parent
3f13d81eb3
commit
557b576da5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user