Joonas Koivunen
585b521606
refactor: split two scenario tests
2020-06-17 17:27:05 +03:00
Joonas Koivunen
5e369241db
refactor: prettify tests
2020-06-17 17:27:05 +03:00
Joonas Koivunen
6255f3c650
fix: root paths for dirs and sharded
2020-06-17 17:27:05 +03:00
Joonas Koivunen
c61d55d940
fix: start now returns ContinuedWalk, root name
2020-06-17 17:27:05 +03:00
Joonas Koivunen
6671e74113
feat: /get http endpoint
...
does not at all pass any tests. we need to add a root path param, which
will be a string version of the requested Cid for the http api. Also,
with this, it becomes possible to hide everything (files, symlinks)
under a single walk api.
2020-06-17 17:26:39 +03:00
Joonas Koivunen
dafbf4915e
wip: add symlinks and hamt sharded dirs
2020-06-17 17:26:39 +03:00
Joonas Koivunen
769ae5bb07
feat: keep track of file size
...
it would probably be enough to just give it out on the first iteration,
maybe?
2020-06-17 17:26:39 +03:00
Joonas Koivunen
02b5a47a31
add: metadata to filetime conversion
2020-06-17 17:26:39 +03:00
Joonas Koivunen
795a34fd46
doc: add note regarding utf8
2020-06-17 17:26:39 +03:00
Joonas Koivunen
c1a0943559
wip: sneak in most of the private parts of tar-rs
2020-06-17 17:26:39 +03:00
Joonas Koivunen
1d572be498
add Entry::metadata
2020-06-17 17:26:39 +03:00
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