macker
January 5, 2019, 6:13am
1
Hello everyone, I have some questions to ask.
it may be elementary questions because I’m a IPFS beginner.
Do you agree with the recognition that the added objects(through like ipfs add
, ipfs get
) is kept in local repository instead of being distributed in the p2p network?
How can I see the list of objects in my own local repository?
ipfs pin ls
You can also only list recursive pins like ipfs pin ls --type=recursive
1 Like
These threads are probably relevant, if not duplicates of this one.
I’m currently looking into ways to quickly check if a given IPFS object (i.e. an IPFS hash) is on your node.
One command I found is ipfs object stat <hash>
If the object is on your node, whether pinned or just cached, ipfs will immediately print the object stats like cumulative size. For objects not on your node, stats might still be printed eventually, but it will take longer, so you could then timeout the ipfs object stat command, but it would be better, if ipfs just returned an error like “…
Here is a simple ipfs add operation.
[mountedDirectory]$ ipfs add -r folder
added QmWce5WcDhjTXp8ycQf92EMNndwNwmTigVEAQ9xpmZWazJ folder/README.md
added Qmc2yZrduQapeK47vkNeT5pCYSXjsZ3x6yzK8an7JLiMq2 folder
123 B / 4.12 KiB [=====>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 2.92%
Later I would like to check that does Qmc2yZrduQapeK47vkNeT5pCYSXjsZ3x…
1 Like