node-scp
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -295,3 +295,3 @@ "use strict"; | ||
if (!(f.type === 'd')) return [3 /*break*/, 7]; | ||
newSrc = utils.joinRemote(remoteInfo.path, f.name); | ||
newSrc = remoteInfo.path + this.remotePathSep + f.name; | ||
newDst = path_1.join(localInfo.path, f.name); | ||
@@ -304,3 +304,3 @@ return [4 /*yield*/, this.downloadDir(newSrc, newDst)]; | ||
if (!(f.type === '-')) return [3 /*break*/, 9]; | ||
src = utils.joinRemote(remoteInfo.path, f.name); | ||
src = remoteInfo.path + this.remotePathSep + f.name; | ||
dst = path_1.join(localInfo.path, f.name); | ||
@@ -307,0 +307,0 @@ return [4 /*yield*/, this.downloadFile(src, dst)]; |
@@ -523,3 +523,3 @@ "use strict"; | ||
root = _a.sent(); | ||
return [2 /*return*/, joinRemote(client, root, aPath.substring(3))]; | ||
return [2 /*return*/, root + client.remotePathSep + aPath.substring(3)]; | ||
case 2: | ||
@@ -530,3 +530,3 @@ if (!aPath.startsWith('.')) return [3 /*break*/, 4]; | ||
root = _a.sent(); | ||
return [2 /*return*/, joinRemote(client, root, aPath.substring(2))]; | ||
return [2 /*return*/, root + client.remotePathSep + aPath.substring(2)]; | ||
case 4: return [2 /*return*/, aPath]; | ||
@@ -533,0 +533,0 @@ case 5: |
@@ -5,3 +5,3 @@ { | ||
"description": "Lightweight, fast and secure SCP function for NodeJS", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "types": "lib/index.d.ts", |
84987