docs: fix ipfs files cp examples (#8533)
Marcin Rataj committed
Oct 29, 2021 at 16:45 UTC
52a747763f6c4e85b33ca051cda9cc4b75c815f9
1 file changed
+2
-2
core/commands/files.go
+2
-2
@@ -338,12 +338,12 @@ IPFS Content Identifier and then "ipfs files cp" to copy it into MFS:
338
$ ipfs add --quieter --pin=false <your file>
339
# ...
340
# ... outputs the root CID at the end
341
-$ ipfs cp /ipfs/<CID> /your/desired/mfs/path
341
+$ ipfs files cp /ipfs/<CID> /your/desired/mfs/path
342
343
If you wish to fully copy content from a different IPFS peer into MFS, do not
344
forget to force IPFS to fetch to full DAG after doing the "cp" operation. i.e:
345
346
-$ ipfs cp /ipfs/<CID> /your/desired/mfs/path
346
+$ ipfs files cp /ipfs/<CID> /your/desired/mfs/path
347
$ ipfs pin add <CID>
348
349
The lazy-copy feature can also be used to protect partial DAG contents from