Here I am trying to create a directory using async function fs.mkdir using the below code but I am getting a error
ERROR: No such file or directory, mkdir 'C:\tmp\test';
var fs = require("fs");
console.log("Going to create directory /tmp/test");
fs.mkdir('/tmp/test',function(err){
if (err) {
return console.error(err);
}
console.log("Directory created successfully!");
});
Any Help regarding this will be highly appreciated.