jsftp-rmr
Recursively delete non-empty nested directories with jsftp, like 'rm -r'
FTP can natively delete only one directory at the time and it must be empty.
Useful for being able to clean up remote directories before uploading files.
Install
$ npm install --save jsftp-rmr
Usage
var jsFtp = ; // decorate `jsFtp` with a new method `rmr`jsFtp = jsFtp; var remoteDirectory = 'public_html/deploy' ftp = options; ftp;
API
jsFtp.rmr(remoteDirectory, callback)
remoteDirectory
Required
Type: string
Path of the remote directory to recursively remove.
Note
Using this command in production can be dangerous. Use it at your own risk.
License
MIT © Alberto Mijares