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

fixes #637
This commit is contained in:
sentriz
2026-03-09 14:57:12 +00:00
parent e535e7888c
commit 65c4674da0
+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 {