Wrote a quick IPFS object manager to build a CSV file with the hash string and name of file. The name of the file is gathered from the file and simple parsed and passed together with the hash to a csv file. Downside you still have to manually copy paste the hash onto the terminal. Working on enumerating the hashes and just selecting the number associated to the hash.
IPFS deamon must be running. Tested only on linux machine
heres the code to it:
https://ipfs.io/ipns/QmaLzisU9wQDpYmCwHAahfcJzhhwLh8kf7cqHikwfJPesU
Let me know what you guys think!
Hmm, I guess there are no peers online at the moment that have the file because it's not loading. I'd love to take a look at it since I've been messing around with IPFS myself. More specifically, trying to build an index of everything available on the IPFS network. But I'm having a hard time finding the filename of hashes. Doing something like
file/ls <hash>
returns all info needed except for the filename... :(Sorry I kept modifying the file and unpinning. And I haven't delved too deep into finding out other peoples file names from their hashed content. I get the name from files already in your local storage. Anyway, I opted to simple use IPNS to change the file when I update it again. It should work now. if not try it at www.github.com/jjvilm/tools (the file is called Clipfsman.py (short for client ipfs manager lol)
Thanks for you intrest, let me know what you think of it. I love! the concept of IPFS, it definitely is still needing a better way to manager hashes and what not, so yesterday I coded for a good time and that file was the result.
Ah I see. I thought you were able to resolve the name of any given hash. The only reliable method I found for that is knowing the root hash (ie resolving the name hash of a peer) or finding the parent hash. Doing
ls
on anything else will only show the names of any links but not that hash itself. It's very frustrating. I currently get these results with scraping DHT logs and resolving+ls'ing swarm peer names: https://i.imgur.com/iyXY2jp.png