is it possible to create folders from path-value if this directory not exist?
function saveJsonInFile(jsonObject, pathToSave) {
jsonfile.writeFileSync(pathToSave, jsonObject);
}
fs.js:584
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open 'C:\workspace\demoNode\out2\chn.json'
Hi,
is it possible to create folders from path-value if this directory not exist?