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

fix https://github.com/chrislusf/seaweedfs/issues/1906
This commit is contained in:
Chris Lu 2021-03-15 20:46:25 -07:00
parent 9f00f95bfb
commit 22a07a12d2

View file

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