Joonas Koivunen
d2dc47520a
add FileSegment::total_file_size
2020-06-17 17:26:39 +03:00
Joonas Koivunen
281f63fb3f
doc: Entry::path
2020-06-17 17:24:23 +03:00
Joonas Koivunen
b7b3d12036
add tar dependency
2020-06-17 17:24:23 +03:00
Joonas Koivunen
eec4598c90
doc: apply suggestions from code review
...
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-06-17 17:24:23 +03:00
Joonas Koivunen
72f68871ef
fix: bad FileSegment::is_last, reorg, comments
...
commenting on a missing test case, some magic number explanations.
2020-06-17 17:24:23 +03:00
Joonas Koivunen
306b10eb0b
refactor: simplify dir walk start
2020-06-17 17:24:23 +03:00
Joonas Koivunen
3a4e2fca5d
feat: walk empty root directories
2020-06-17 17:24:23 +03:00
Joonas Koivunen
27df6119d3
refactor: simplify copypasted parts
2020-06-17 17:24:23 +03:00
Joonas Koivunen
98007109a6
wip: update skipping story
2020-06-17 17:24:23 +03:00
Joonas Koivunen
c5e3949697
refactor: path name recycling
2020-06-17 17:24:23 +03:00
Joonas Koivunen
1367e50f59
refactor: FileSegment to struct
...
instead of destructing perhaps provide sometimes useful getters
2020-06-17 17:24:23 +03:00
Joonas Koivunen
d74a9bed0f
refactor: dry unixfs/examples/get
2020-06-17 17:24:23 +03:00
Joonas Koivunen
1c2981b73c
feat: print sha256 in examples/get.rs
2020-06-17 17:24:23 +03:00
Joonas Koivunen
7590da67f3
feat: make different file segments easier to distinguish
2020-06-17 17:24:23 +03:00
Joonas Koivunen
d62da31a62
add: unixfs/examples/get.rs
...
the example will list all files in the tree and visit them.
2020-06-17 17:24:23 +03:00
Joonas Koivunen
5ac211f844
feat: filevisit vec caching
2020-06-17 17:24:23 +03:00
Joonas Koivunen
823f207a02
feat: add prorotype of walking over all unixfs
2020-06-17 17:24:11 +03:00
Joonas Koivunen
e43008f37d
doc: fix comment
2020-06-11 19:10:46 +03:00
Joonas Koivunen
42fd182df7
refactor: use map_err
2020-06-11 19:10:46 +03:00
Joonas Koivunen
d5be60249c
Apply suggestions from code review
...
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-06-11 18:55:02 +03:00
Joonas Koivunen
b1575f228d
refactor: remove unused conversion
2020-06-11 15:44:47 +03:00
Joonas Koivunen
bcc7a0c434
chore: remove extra TODO
2020-06-11 15:37:07 +03:00
Joonas Koivunen
2766857a8f
add: more locking down tests
...
not feeling so well about these tests. while they do add coverage and
can serve as documentation I don't think they are useful.
2020-06-11 15:33:39 +03:00
Joonas Koivunen
17812a205a
add: more test cases
2020-06-11 15:25:00 +03:00
Joonas Koivunen
3f0d9acb57
add: err when resolving through unsupported type
2020-06-11 15:24:48 +03:00
Joonas Koivunen
ec9607f90e
add test cases for sharded lookup
2020-06-11 15:04:47 +03:00
Joonas Koivunen
d0070f08d9
add minor test case
2020-06-11 14:38:12 +03:00
Joonas Koivunen
6c88e96ec6
refactor: split shard stuff away from dir
2020-06-11 14:33:04 +03:00
Joonas Koivunen
808a1dad32
refactor: simplify error types, less matched cases
2020-06-11 14:17:01 +03:00
Joonas Koivunen
b1f635aa6e
chore: cargo fmt again
2020-06-11 13:49:17 +03:00
Joonas Koivunen
ba98835a7e
add: dagpb getters to ipfs-unixfs
2020-06-11 13:43:44 +03:00
Joonas Koivunen
d78a50c177
chore: update unixfs readme
2020-06-10 20:33:51 +03:00
Joonas Koivunen
392840c0ad
chore: cargo fmt
2020-06-10 20:32:58 +03:00
Joonas Koivunen
7043fe2543
fix returning outer pbnode when empty inner
2020-06-10 20:32:58 +03:00
Joonas Koivunen
0aca44906e
refactor: move test case over to ipfs-unixfs
2020-06-10 20:32:58 +03:00
Joonas Koivunen
b26332a907
add: UnexpectedNodeType for specific error messages
2020-06-10 20:32:56 +03:00
Joonas Koivunen
da23a23784
add: StdError impl for ResolveError, helpers
2020-06-10 20:32:53 +03:00
Joonas Koivunen
92b782ea94
chore: doc and fmt
2020-06-10 20:32:49 +03:00
Joonas Koivunen
74ac58072b
refactor: simplify conversions to cid and unify error type
2020-06-10 20:32:49 +03:00
Joonas Koivunen
301011db80
chore: cargo fmt
2020-06-10 20:32:49 +03:00
Joonas Koivunen
588ff5a720
refactor: inline refactored methods
2020-06-10 20:32:49 +03:00
Joonas Koivunen
2f07dd6538
refactor: align errors, cleanup
2020-06-10 20:32:49 +03:00
Joonas Koivunen
3872aae61d
refactor: simplify most the partitoning and err cases
...
big ticket item still missing is the two wonky error cases...
2020-06-10 20:32:49 +03:00
Joonas Koivunen
3097c16976
add: caching via Option parameter
...
Cache allows us to recover the inner VecDeque which should come handy
when resolving over multiple segments.
2020-06-10 20:32:20 +03:00
Joonas Koivunen
86957edb59
add: dagpb/unixfs path segment resolving
2020-06-10 20:32:17 +03:00
Joonas Koivunen
fb91f514c9
add: try_parse to recover pbnode either way
...
this is probably needed for the directory resolving.
2020-06-10 20:32:11 +03:00
Joonas Koivunen
719163c662
add: missing Error::source impl
2020-06-10 20:32:06 +03:00
Joonas Koivunen
4359e6666b
refactor: remove ipfs-unixfs::pb::UnixFsReadFailed from api
2020-06-09 14:44:34 +03:00
Joonas Koivunen
89cc5ab1d0
fix: remove --owned from pb-rs gen
2020-06-08 15:03:34 +03:00
Joonas Koivunen
aba46ae299
refactor: cleanup, remove dead code, rename
...
* cleanup tests
* cleanup example
* remove extra lifetime
* use map instead of match
* remove extra formatting
* rename test, check set properties
* rename Just/Spread to Bytes/Links
2020-06-08 15:03:34 +03:00