FTP can natively create only one directory at the time.
Useful for being able to upload files to deep paths without knowing if the directories exists beforehand.
$ npm install --save jsftp-mkdirp
const JSFtp = ;// decorate `JSFtp` with a new method `mkdirp`JSFtp;const ftp =host: 'myserver.com';const path = 'public_html/deploy/foo/bar';ftp;
Returns a Promise.
Path of the nested directories you want to create.
MIT © Sindre Sorhus