Skip to content

Commit 5e3f332

Browse files
committed
Removed commedted code
1 parent 3e4425d commit 5e3f332

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/client.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -283,28 +283,6 @@ Client.prototype.upload = function(src, dest, callback) {
283283
});
284284
};
285285

286-
/*Client.prototype.download = function(src, dest, callback) {
287-
var self = this;
288-
289-
self.sftp(function(err,sftp){
290-
if (err) {
291-
return callback(err);
292-
}
293-
294-
var sftp_readStream = sftp.createReadStream(src);
295-
sftp_readStream.on('error', function(err){
296-
callback(err);
297-
});
298-
sftp_readStream.pipe(fs.createWriteStream(dest))
299-
.on('close',function(){
300-
self.emit('read', src);
301-
callback(null);
302-
})
303-
.on('error', function(err){
304-
callback(err);
305-
});
306-
});
307-
};*/
308286
Client.prototype.download = function(src, dest, callback) {
309287
var self = this;
310288

0 commit comments

Comments
 (0)