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.
- package/lib/rsyncExec.js +1 -1
- 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 =
|
|
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}`);
|