Skip to content

Commit de4769c

Browse files
committed
Fix support for dir symlinks
1 parent e2791ac commit de4769c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/merkletrie/filesystem/node.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ func (n *node) NumChildren() (int, error) {
7777
}
7878

7979
func (n *node) calculateChildren() error {
80+
if !n.IsDir() {
81+
return nil
82+
}
83+
8084
if len(n.children) != 0 {
8185
return nil
8286
}

0 commit comments

Comments
 (0)