Browse Source

fuse: important: if filer -filer.path is not root, directory listing will fail

pull/2063/head
Chris Lu 4 years ago
parent
commit
957e1a1bc1
  1. 2
      weed/util/bounded_tree/bounded_tree.go

2
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 {

Loading…
Cancel
Save