📌  相关文章
📜  监视文件夹中的更改 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:30.559000             🧑  作者: Mango

代码示例1
//with that code I can only see the changes of files in "FileStorage" folder, but not the action when I open files in it
fs.watch("C:/FileStorage", (eventType, filename) => {
        console.log("\nThe file", filename, "was modified!");
        console.log("The type of change was:", eventType);
 });