mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 17:51:20 +08:00
[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:
@@ -552,5 +552,8 @@ func (dir *Dir) saveEntry() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dir *Dir) FullPath() string {
|
func (dir *Dir) FullPath() string {
|
||||||
return string(dir.entry.FullPath)
|
if dir.wfs.option.FilerMountRootPath == "/" {
|
||||||
|
return string(dir.entry.FullPath)
|
||||||
|
}
|
||||||
|
return string(dir.entry.FullPath)[len(dir.wfs.option.FilerMountRootPath):]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user