diff --git a/data/builder/file.go b/data/builder/file.go index 1aafe97..a522784 100644 --- a/data/builder/file.go +++ b/data/builder/file.go @@ -109,6 +109,7 @@ func fileTreeRecursive(depth int, children []ipld.Link, childLen []uint64, src c } totalSize += sz children = append(children, nxt) + childLen = append(childLen, sz) blksizes = append(blksizes, sz) } if len(children) == 0 {