You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows 10, I am not getting the same behavior of fs.statSync when trying to access a non-existent directory as I do on Linux. The expected result is for an error to be thrown, which occurs on Linux, but not on Windows 10.
Example:
try{varstat=fs.statSync(path_to_missing_dir);if(stat.isDirectory())returntrue;}catch(err){console.log(err.message);// not reached on windows 10}