ssh-client-wrapper 3.3.3 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/rsyncExec.js +1 -1
  2. package/package.json +1 -1
package/lib/rsyncExec.js CHANGED
@@ -143,7 +143,7 @@ export async function recv(hostInfo, argSrc, dst, rsyncOpt, timeout, retryableEx
143
143
  const args = ["-avv", "--copy-unsafe-links", ...rshOpt, ...rsyncOpt, ...src, dst];
144
144
 
145
145
  //make destination directory
146
- const dstDir = argSrc.len > 1 || hasMagic(argSrc[0]) ? dst : path.dirname(dst);
146
+ const dstDir = src.length > 1 || hasMagic(argSrc[0]) ? dst : path.dirname(dst);
147
147
  await fs.mkdir(dstDir, { recursive: true });
148
148
 
149
149
  debug(`recv ${src.join(" ")} to ${dst}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh-client-wrapper",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "wrapper library for open ssh client and rsync",
5
5
  "keywords": [
6
6
  "ssh",