diff --git a/backend/main.go b/backend/main.go index e00e7892..30297847 100644 --- a/backend/main.go +++ b/backend/main.go @@ -116,7 +116,7 @@ func main() { if err := watchsubdir(watcher, ev.Name); err != nil { log.Println(err) } - } else if ev.Op & fsnotify.Write == fsnotify.Write { + } else if ev.Op & fsnotify.Create == fsnotify.Create { go treat(ev.Name) } case err := <-watcher.Errors: