ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
15.9k stars 2.98k forks source link

/ipfs/cached + /ipfs/pinned fuse dirs #257

Open jbenet opened 9 years ago

jbenet commented 9 years ago

would be nice to list the hashes stored locally under /ipfs with special (well known) directories:

ebuchman commented 9 years ago

How best to track cached (non pinned) objects?

jbenet commented 9 years ago

To go along with the fuse files, we should also have a command. maybe it's just an extension of refs

# outputs all refs stored locally
ipfs refs local 

# outputs only the pinned
ipfs refs --pinned

# complement
ipfs refs --cached
jbenet commented 9 years ago

Update: this is possible to implement now. the blockstore has {AllKeys, AllKeysChan} functions

whyrusleeping commented 8 years ago

Further update: I want to have every ipfs add make an entry in the files api space, maybe under /pins or something. With that implemented, we could almost (except for the advent of direct pins) remove pinning entirely, and replace it with 'copying to your local filesystem' which is an idea i really like.

daviddias commented 8 years ago

:+1: to this idea (and also making files add a thing)

whyrusleeping commented 8 years ago

in the future, we may even move ipfs add to ipfs files add. This would help with separating the ideas of DAG and unixfs better than we are now.