I'm trying to get folder's/file's name when I open those, tryed to handle a fs.watch event but it only works when I rename add or remove the file/folder in folder on which I was handled
fs.watch,
for example:
//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);
});
have any idea how to do that?