This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).
The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.
The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...
This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.
License: MIT
Signed-off-by:
Juan Batiz-Benet <juan@benet.ai>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| incfusever | 正在载入提交数据... | |
| unixfs | 正在载入提交数据... | |
| add.go | 正在载入提交数据... | |
| bitswap.go | 正在载入提交数据... | |
| block.go | 正在载入提交数据... | |
| bootstrap.go | 正在载入提交数据... | |
| cat.go | 正在载入提交数据... | |
| commands.go | 正在载入提交数据... | |
| config.go | 正在载入提交数据... | |
| dht.go | 正在载入提交数据... | |
| diag.go | 正在载入提交数据... | |
| diag_test.go | 正在载入提交数据... | |
| dns.go | 正在载入提交数据... | |
| get.go | 正在载入提交数据... | |
| id.go | 正在载入提交数据... | |
| ipns.go | 正在载入提交数据... | |
| log.go | 正在载入提交数据... | |
| ls.go | 正在载入提交数据... | |
| mount_darwin.go | 正在载入提交数据... | |
| mount_nofuse.go | 正在载入提交数据... | |
| mount_unix.go | 正在载入提交数据... | |
| mount_windows.go | 正在载入提交数据... | |
| name.go | 正在载入提交数据... | |
| object.go | 正在载入提交数据... | |
| pin.go | 正在载入提交数据... | |
| ping.go | 正在载入提交数据... | |
| publish.go | 正在载入提交数据... | |
| refs.go | 正在载入提交数据... | |
| repo.go | 正在载入提交数据... | |
| resolve.go | 正在载入提交数据... | |
| root.go | 正在载入提交数据... | |
| stat.go | 正在载入提交数据... | |
| swarm.go | 正在载入提交数据... | |
| tour.go | 正在载入提交数据... | |
| tour_test.go | 正在载入提交数据... | |
| update.go | 正在载入提交数据... | |
| version.go | 正在载入提交数据... |