Recognize replaced automation files and update secure watcher for 2.1.53
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-03 11:42:30 +02:00
1 parent f2e400c89e
commit d19d7faa19
9 files changed
+89 -178

No files matched your search

+5
View File
@@ -192,6 +192,11 @@ class FolderMonitor extends EventEmitter {
});
}
this._watcher.on('add', (filePath) => this._onNewFile(filePath, generation));
this._watcher.on('change', (filePath) => {
if (!this._acceptCallback(generation)) return;
this._seenFiles.delete(this._normalizePath(filePath));
this._onNewFile(filePath, generation);
});
this._watcher.on('unlink', (filePath) => {
if (this._acceptCallback(generation)) this._seenFiles.delete(this._normalizePath(filePath));
});