Closed tx0c closed 2 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
This is something js-ipfs supports that go-ipfs does not. If you'd like to add support, please open a PR against the kubo repo. You can also switch to kubo-rpc-client which will be kubo-only going forward so will not support the extra niceties that js-ipfs does.
Version: Go-IPFS/0.15.0 (current latest)
Platform: Linux
Subsystem: js-ipfs-http-client/latest
Severity:
Description:
ipfs.files.cp(['/ipfs/<CID1>', '/ipfs/<CID2>', '/ipfs/<CID3...>'], '/dest-dir')
[HTTPError: cp: cannot put node in path /ipfs/...: file does not exist]
with some debugging logs printing, I got this:
it seems just translate all from paths as
arg
, and/dest-dir
as the lastarg
, but from https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-files-cp it seems support only a single file/dir/ipfspath at a timeSteps to reproduce the error:
Similar to #3547 there are many implementation details different between Js-IPFS vs Go-IPFS, but Js-IPFS has a poor performance if running as daemon server, in most cases call JS-ipfs-http-client interact'ing with Go-IPFS daemon server