Recognize replaced automation files and update secure watcher for 2.1.53
CI / verify (push) Canceled after 0s
CI / verify (push) Canceled after 0s
This commit is contained in:
1 parent
f2e400c89e
commit
d19d7faa19
9 files changed
+89
-178
No files matched your search
@@ -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));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user