mikeal / sequest

Simplified API for SSH and SFTP similar to request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkdir if directory not exists?

kenichi-shibata opened this issue · comments

Any functions that support mkdir -p here?

Thanks!

I also need a way to do a mkdir. Have you found a way so far?

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
})

Excellent! Thanks