fix(scanner): reset batch timer on fsnotify Remove events

fixes #637
This commit is contained in:
sentriz
2026-04-26 03:00:52 +02:00
committed by yaemiku
parent ee43c4db00
commit fb3fb745f8
+1
View File
@@ -188,6 +188,7 @@ func (s *Scanner) ExecuteWatch(ctx context.Context) error {
case event := <-watcher.Events:
if event.Op&(fsnotify.Remove) == fsnotify.Remove {
batchClean = true
batchT.Reset(batchInterval)
break
}
if event.Op&(fsnotify.Create|fsnotify.Write) == 0 {