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 {
|
} else {
|
||||||
for _, d := range ds {
|
for _, d := range ds {
|
||||||
p := path.Join(pathname, d.Name())
|
p := path.Join(pathname, d.Name())
|
||||||
if d.IsDir() {
|
if d.IsDir() && d.Name() != ".tmp" {
|
||||||
if err := watchsubdir(watcher, p); err != nil {
|
if err := watchsubdir(watcher, p); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user