change runtimeCheckLog
This commit is contained in:
parent
2c4a0c7d11
commit
e750e87107
|
|
@ -88,13 +88,13 @@ export async function runtimeCheckLogs(folderPath) {
|
|||
async function watchFilesInList() {
|
||||
//only check new file ---> fileList - fileList_old = new file
|
||||
const watcher = chokidar.watch(
|
||||
fileList
|
||||
fileList.slice(0,40)
|
||||
?.filter((i) => fileList_old.includes(i) === false)
|
||||
.map((file) => folderPath + "/" + file)
|
||||
);
|
||||
|
||||
watcher.setMaxListeners(200);
|
||||
await fileList
|
||||
await fileList.slice(0,40)
|
||||
?.filter((i) => fileList_old.includes(i) === false)
|
||||
?.forEach((fileName) => {
|
||||
//path file
|
||||
|
|
|
|||
Loading…
Reference in New Issue