Comparing version 0.4.4 to 0.4.5
11
index.js
@@ -164,3 +164,14 @@ var spawn = require('child_process').spawn, | ||
FTP.prototype.rmdir = function () { return this.raw('rmdir ' + Array.prototype.slice.call(arguments).map(this._escapeshell.bind(this)).join(' ')); }; | ||
FTP.prototype.mirror = function (opts) { | ||
opts = opts || {}; | ||
opts.remoteDir = opts.remoteDir || '.'; | ||
opts.localDir = opts.localDir || '.'; | ||
var raw = 'mirror'; | ||
if (opts.filter) { | ||
raw += ' -i "'+String(opts.filter).slice(1, -1)+'"'; | ||
} | ||
raw += ' ' + this._escapeshell(opts.remoteDir) + ' ' + this._escapeshell(opts.localDir); | ||
return this.raw(raw); | ||
}; | ||
module.exports = FTP; |
{ | ||
"name": "ftps", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name" : "Sébastien Chopin" , |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15668
286
1