From de4769c8ee1fd80478deca1bd66b29b1f8c28526 Mon Sep 17 00:00:00 2001 From: Dmitry Frank Date: Fri, 10 Nov 2017 19:51:34 +0200 Subject: Fix support for dir symlinks --- utils/merkletrie/filesystem/node.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/merkletrie') diff --git a/utils/merkletrie/filesystem/node.go b/utils/merkletrie/filesystem/node.go index f763e08..42a58a3 100644 --- a/utils/merkletrie/filesystem/node.go +++ b/utils/merkletrie/filesystem/node.go @@ -77,6 +77,10 @@ func (n *node) NumChildren() (int, error) { } func (n *node) calculateChildren() error { + if !n.IsDir() { + return nil + } + if len(n.children) != 0 { return nil } -- cgit