Skip to content
This repository has been archived by the owner. It is now read-only.

Turn IPFS path into multihashes in one API call? #135

Closed
matthewrobertbell opened this issue Jun 18, 2016 · 4 comments
Closed

Turn IPFS path into multihashes in one API call? #135

matthewrobertbell opened this issue Jun 18, 2016 · 4 comments

Comments

@matthewrobertbell
Copy link

matthewrobertbell commented Jun 18, 2016

If I have /ipfs/(some hash)/a/b/c , is there a way to turn a, b and c into multihashes in one call? This can be done one at a time with calls to object stat, but one call would be nice

@Kubuxu
Copy link

Kubuxu commented Jun 18, 2016

You can use:

 ~  ipfs resolve /ipfs/QmR1AeboA161SNxfSgRYtp264RucPVYcHLradx3kJP2f4o/trooper.jpg             ✘ 
/ipfs/QmY3nJ4zW5j5dJ8LmNT9yF3Twp9dv5FP18rLf5kDXMBhYP

It will resolve recursively until single multihash.

@matthewrobertbell
Copy link
Author

matthewrobertbell commented Jun 18, 2016

I don't mean a single result, I mean the multihash for every component of the path in one call, A, B and C.

@Kubuxu
Copy link

Kubuxu commented Jun 18, 2016

Then no, there isn't command like that, you would have to use some script.

@madavieb
Copy link

madavieb commented May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants