diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-05-09 00:32:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-05-09 00:32:21 -0700 |
| commit | 957e1a1bc115d26c626ffeaa207936b1fae5362f (patch) | |
| tree | a7fa057677922f7908ca54fd60b5cab0765500ba /weed/util/bounded_tree/bounded_tree.go | |
| parent | 7ca75347ec71c815e7edfff42a53cbe4b57bc7dd (diff) | |
| download | seaweedfs-957e1a1bc115d26c626ffeaa207936b1fae5362f.tar.xz seaweedfs-957e1a1bc115d26c626ffeaa207936b1fae5362f.zip | |
fuse: important: if filer -filer.path is not root, directory listing will fail
Diffstat (limited to 'weed/util/bounded_tree/bounded_tree.go')
| -rw-r--r-- | weed/util/bounded_tree/bounded_tree.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
