Fixes ipfs/go-ipfs#2155 by turning the hash path arguments into keys
and unpinning directly, rather than running a full core.Resolve on
them. This lets users fail fast when they try to remove pins that
they don't have locally.
Note that this will only work when the path is of the form <hash> or
/ipfs/<hash>. Given e.g. /ipfs/<hash>/foo, foo's key cannot be known
without first resolving <hash>, which may involve talking to the
network.
License: MIT
Signed-off-by:
Stephen Whitmore <noffle@ipfs.io>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| commands | 正在载入提交数据... | |
| corehttp | 正在载入提交数据... | |
| corenet | 正在载入提交数据... | |
| corerepo | 正在载入提交数据... | |
| corerouting | 正在载入提交数据... | |
| coreunix | 正在载入提交数据... | |
| mock | 正在载入提交数据... | |
| .gitignore | 正在载入提交数据... | |
| bootstrap.go | 正在载入提交数据... | |
| bootstrap_test.go | 正在载入提交数据... | |
| builder.go | 正在载入提交数据... | |
| core.go | 正在载入提交数据... | |
| core_test.go | 正在载入提交数据... | |
| pathresolver.go | 正在载入提交数据... | |
| pathresolver_test.go | 正在载入提交数据... |