mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-18 14:41:31 +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:
parent
9f00f95bfb
commit
22a07a12d2
@ -552,5 +552,8 @@ func (dir *Dir) saveEntry() error {
|
||||
}
|
||||
|
||||
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):]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user