Answers for "watch changes in folder"

0

watch changes in folder

//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);
 });
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language