diff options
Diffstat (limited to 'weed/filesys/dir.go')
| -rw-r--r-- | weed/filesys/dir.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 6168425af..dc208dcbb 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -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):] } |
