Browse Source

[mount] [regression] `filer.path` option results in empty mount in 2.32

fix https://github.com/chrislusf/seaweedfs/issues/1906
pull/1910/head
Chris Lu 4 years ago
parent
commit
22a07a12d2
  1. 3
      weed/filesys/dir.go

3
weed/filesys/dir.go

@ -552,5 +552,8 @@ func (dir *Dir) saveEntry() error {
} }
func (dir *Dir) FullPath() string { func (dir *Dir) FullPath() string {
if dir.wfs.option.FilerMountRootPath == "/" {
return string(dir.entry.FullPath) return string(dir.entry.FullPath)
} }
return string(dir.entry.FullPath)[len(dir.wfs.option.FilerMountRootPath):]
}
Loading…
Cancel
Save