Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 4ad165c

Browse files
committed
exporter: exposing dir size
1 parent 7de69fe commit 4ad165c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/exporter/dir-flat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function dirExporter (node, name, path, pathRest, resolve, dag, parent, depth) {
1414
depth: depth,
1515
path: path,
1616
hash: node.multihash,
17+
size: node.size,
1718
type: 'dir'
1819
}
1920

src/exporter/dir-hamt-sharded.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function shardedDirExporter (node, name, path, pathRest, resolve, dag, parent, d
1515
depth: depth,
1616
path: path,
1717
hash: cleanHash(node.multihash),
18+
size: node.size,
1819
type: 'dir'
1920
}
2021
}

0 commit comments

Comments
 (0)