我正在运行一个lotus,但是当我运行时:
lotus client import <path/to/directory>我得到:
ERROR: failed to import file using unixfs: failed to import file to store to compute root: read /home/patrick_alphachain_io/code/unstoppable-ui/unstoppable-ui-static-export: is a directory我们不能像用IPFS那样上传目录吗?有没有办法只上传一个IPFS?
发布于 2022-08-23 13:21:28
您可以将您的文件夹打包到一个.car文件中,并将其上传到文件中。
您可以使用像ipfs car这样的工具。
yarn ipfs-car --pack /path/to/directory/ --output my-output.car然后上传到filecoin
lotus client import --car my-output.carhttps://stackoverflow.com/questions/73459128
复制相似问题