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>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| lib | 正在载入提交数据... | |
| t0051-object-data | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| Makefile | 正在载入提交数据... | |
| README.md | 正在载入提交数据... | |
| bin | 正在载入提交数据... | |
| t0010-basic-commands.sh | 正在载入提交数据... | |
| t0020-init.sh | 正在载入提交数据... | |
| t0021-config.sh | 正在载入提交数据... | |
| t0030-mount.sh | 正在载入提交数据... | |
| t0040-add-and-cat.sh | 正在载入提交数据... | |
| t0041-add-cat-offline.sh | 正在载入提交数据... | |
| t0042-add-skip.sh | 正在载入提交数据... | |
| t0043-add-w.sh | 正在载入提交数据... | |
| t0045-ls.sh | 正在载入提交数据... | |
| t0050-block.sh | 正在载入提交数据... | |
| t0051-object.sh | 正在载入提交数据... | |
| t0060-daemon.sh | 正在载入提交数据... | |
| t0061-daemon-opts.sh | 正在载入提交数据... | |
| t0070-user-config.sh | 正在载入提交数据... | |
| t0080-repo.sh | 正在载入提交数据... | |
| t0081-repo-pinning.sh | 正在载入提交数据... | |
| t0090-get.sh | 正在载入提交数据... | |
| t0100-name.sh | 正在载入提交数据... | |
| t0110-gateway.sh | 正在载入提交数据... | |
| t0120-bootstrap.sh | 正在载入提交数据... | |
| t0140-swarm.sh | 正在载入提交数据... | |
| t0141-addfilter.sh | 正在载入提交数据... | |
| t0150-clisuggest.sh | 正在载入提交数据... | |
| t0200-unixfs-ls.sh | 正在载入提交数据... | |
| x0045-add-cat-iptb.sh | 正在载入提交数据... | |
| x0111-gateway-writable.sh | 正在载入提交数据... | |
| xt0101-iptb-name.sh | 正在载入提交数据... | |
| xt0130-multinode.sh | 正在载入提交数据... |