IPFS 下载带有文件夹 HASH 的文件夹内容

发布于 2025-01-12 13:10:52 字数 122 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

×纯※雪 2025-01-19 13:10:53

如果您可以安装 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.

风向决定发型 2025-01-19 13:10:53

所有网关上都有下载端点,但它们对我来说并不是真正一致(也许它们有文件大小限制、超时等)。您可以尝试这样的操作:

https://ipfs.io/ipfs/CID?download=true&format=tar&filename=Filename.tar

尝试多个网关,例如。 CloudFlare:

https://cloudflare-ipfs.com/ipfs/bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq?download=true&format=tar&filename=Hello.tar

没有下载,只有文件夹页面?尝试下载 CAR 而不是 TAR:

https://ipfs.io/ipfs/CID?download=true&format=tar&filename=Filename.car

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:

https://ipfs.io/ipfs/CID?download=true&format=tar&filename=Filename.tar

Try multiple gateways, eg. CloudFlare:

https://cloudflare-ipfs.com/ipfs/bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq?download=true&format=tar&filename=Hello.tar

No download, just folder page? Try to download a CAR instead of TAR:

https://ipfs.io/ipfs/CID?download=true&format=tar&filename=Filename.car

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文