Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 10f0eb4

Browse files
committed
chore: fix mfs cp and mv
1 parent bebdb8d commit 10f0eb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ipfs-http-client/src/files/cp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = configure(api => {
2222
timeout: options.timeout,
2323
signal: options.signal,
2424
searchParams: toUrlSearchParams({
25-
arg: sources.map(src => CID.isCID(src) ? `/ipfs/${src}` : src),
25+
arg: sources.concat(destination).map(src => CID.isCID(src) ? `/ipfs/${src}` : src),
2626
...options
2727
}),
2828
headers: options.headers

packages/ipfs-http-client/src/files/mv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = configure(api => {
2222
timeout: options.timeout,
2323
signal: options.signal,
2424
searchParams: toUrlSearchParams({
25-
arg: sources.map(src => CID.isCID(src) ? `/ipfs/${src}` : src),
25+
arg: sources.concat(destination).map(src => CID.isCID(src) ? `/ipfs/${src}` : src),
2626
...options
2727
}),
2828
headers: options.headers

0 commit comments

Comments
 (0)