node.js - mkdir command not working properly in child_process exec -
i trying create folders. e.g folder1 --> folder2. below code snippet executes folders not created in level deep. created in same level. running code in windows machine.
var exec = require('child_process').exec; exec('mkdir folder1\folder2' , function(err, strdout, stderr){ if(err) console.log("folder creation err:" + err) })
code output:
root folder:
folder1
older2
can me out fix this?
wiki
Comments
Post a Comment