diff --git a/fs.go b/fs.go index 7738ca2a05..e59316dd24 100644 --- a/fs.go +++ b/fs.go @@ -989,10 +989,7 @@ func cleanCacheNolock( func (h *fsHandler) pathToFilePath(path string) string { if _, ok := h.filesystem.(*osFS); !ok { - if len(path) < 1 { - return path - } - return path[1:] + return filepath.Join(h.root, path) } return filepath.FromSlash(h.root + path) }