Skip to content

Instantly share code, notes, and snippets.

View charlietilt's full-sized avatar
🏠
Working from home

Charlie Tilt charlietilt

🏠
Working from home
View GitHub Profile
@charlietilt
charlietilt / client.js
Created August 27, 2015 16:18
Bytes transfered
Client.prototype.download = function(src, dest, callback) {
var self = this;
var intervalId;
self.sftp(function(err,sftp){
if (err) {
return callback(err);
}
var sftp_readStream = sftp.createReadStream(src);