mkdir if directory not exists?
kenichi-shibata opened this issue · comments
Kenichi Shibata commented
Any functions that support mkdir -p here?
Thanks!
Chris Kinsman commented
I also need a way to do a mkdir. Have you found a way so far?
Jarrett Cruger commented
There shouldnt be an issue running that command on the box with something like..
var sequest = require('sequest')
var directory = '/full/path/to/dir';
sequest('root@127.0.0.1', 'mkdir -p ' + directory, function (e, stdout) {
if (e) throw e
})
Chris Kinsman commented
Excellent! Thanks