Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initialize: function(options) {
this.basePath = (options.sftp && options.sftp.home) || "";
this.sftp = new Sftp();
var self = this;
this.timeout = 0;
this.sftp.init(options.sftp, function(err) {
// throw it anyway, because it's fatal...
if (err)
throw err;
self.sftp.connect(function(err){
if (err)
throw err;
});
});
AsyncEventEmitter.DEFAULT_TIMEOUT = 10000;
},