IPFS 下载带有文件夹 HASH 的文件夹内容
IPFS 上有一个具有以下哈希的文件夹:QmQGQU13hzouofHiMbXSstFJJxAkr6kgfahaxBtZFG8PEn
如何在 IPFS 上查看/下载此文件夹中包含的所有数据?
There is a folder on IPFS with the following hash: QmQGQU13hzouofHiMbXSstFJJxAkr6kgfahaxBtZFG8PEn
How can I view/download all data contained within this folder on IPFS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您可以安装 ipfs 工具,只需查看文档:
https://docs.ipfs.io/basics/command-line/#remove-a-file
例如,
ipfs ls
将显示该文件夹的内容。否则,只需使用 ipfs 网关 :
https://ipfs.io/ipfs/QmQGQU13hzouofHiMbXSstFJJxAkr6kgfahaxBtZFG8PEn
但是要知道,如果没有人在线获取此 ipfs 目录的内容,您将无法获取它。
If you can install the
ipfs
tools, just look at the doc:https://docs.ipfs.io/basics/command-line/#remove-a-file
For example,
ipfs ls <hash>
will show you the content of the folder.Otherwise, just use an ipfs gateway :
https://ipfs.io/ipfs/QmQGQU13hzouofHiMbXSstFJJxAkr6kgfahaxBtZFG8PEn
But know that if nobody is online with the content of this ipfs directory, you will not be able to get it.
所有网关上都有下载端点,但它们对我来说并不是真正一致(也许它们有文件大小限制、超时等)。您可以尝试这样的操作:
尝试多个网关,例如。 CloudFlare:
没有下载,只有文件夹页面?尝试下载 CAR 而不是 TAR:
Car 还具有保留 IPFS 结构的优点 - 因此您可以稍后在同一 CID 下重新上传文件夹(没有 car 很难重现)
There are download endpoints on all gateways, but they are not really consistent for me (maybe they have a file size limit, timeout, etc). You can try something like this:
Try multiple gateways, eg. CloudFlare:
No download, just folder page? Try to download a CAR instead of TAR:
Car also has the advantage of preserving the IPFS structure - so you can re-upload the folder later under the same CID (which is hard to reproduce without car)