/api/v0/files/cp

Add references to IPFS files and directories in MFS (or copy within MFS).

Arguments

  • arg [string]: Source IPFS or MFS path to copy. Required: yes.

  • arg [string]: Destination within MFS. Required: yes.

  • parents [bool]: Make parent directories as needed. Required: no.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl -X POST "http://127.0.0.1:5001/api/v0/files/cp?arg=<source>&arg=<dest>&parents=<value>"

Last updated