From 957e1a1bc115d26c626ffeaa207936b1fae5362f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 9 May 2021 00:32:21 -0700 Subject: [PATCH] fuse: important: if filer -filer.path is not root, directory listing will fail --- weed/util/bounded_tree/bounded_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/bounded_tree/bounded_tree.go b/weed/util/bounded_tree/bounded_tree.go index 137f690b8..ba7f1dcc4 100644 --- a/weed/util/bounded_tree/bounded_tree.go +++ b/weed/util/bounded_tree/bounded_tree.go @@ -41,7 +41,7 @@ func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (vis if t.root == nil { return } - components := p.Split() + components := util.FullPath(p[len(t.baseDir):]).Split() // fmt.Printf("components %v %d\n", components, len(components)) canDelete, err := t.ensureVisited(t.root, t.baseDir, components, 0, visitFn) if err != nil {