Comparing version 0.2.1 to 0.2.2
@@ -282,2 +282,6 @@ var fs = require('fs'); | ||
self.sftp(function(err,sftp){ | ||
if (err) { | ||
return callback(err); | ||
} | ||
var sftp_readStream = sftp.createReadStream(src); | ||
@@ -284,0 +288,0 @@ sftp_readStream.on('error', function(err){ |
@@ -89,2 +89,4 @@ var fs = require('fs'); | ||
exports.Client = Client; | ||
exports.scp = function(src, dest, callback) { | ||
@@ -91,0 +93,0 @@ var client = new Client(); |
{ | ||
"name": "scp2", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A pure javascript scp program based on ssh2.", | ||
@@ -30,3 +30,4 @@ "author": "Hsiaoming Yang <lepture@me.com>", | ||
"mocha": "*", | ||
"expect.js": "*" | ||
"expect.js": "*", | ||
"jscoverage": "^0.5.9" | ||
}, | ||
@@ -33,0 +34,0 @@ "bin": { |
@@ -192,2 +192,8 @@ # scp2 | ||
**2015-06-01** `0.2.2` | ||
1. Added error callback to download prototype | ||
2. Adding Client to scp module exports | ||
**2015-01-09** `0.2.1` | ||
@@ -194,0 +200,0 @@ |
Sorry, the diff of this file is not supported yet
22193
368
276
4