|
@@ -166,9 +166,9 @@ func (a ServerMessageBlockFileSystemAbstraction) VirtualPathToRealPath(subpath s
|
|
subpath = filterFilepath(subpath)
|
|
subpath = filterFilepath(subpath)
|
|
|
|
|
|
if a.Hierarchy == "user" {
|
|
if a.Hierarchy == "user" {
|
|
- return strings.ReplaceAll(filepath.Clean(filepath.Join("users", username, subpath)), "\\", "/"), nil
|
|
|
|
|
|
+ return toWinPath(filepath.ToSlash(filepath.Clean(filepath.Join("users", username, subpath)))), nil
|
|
} else if a.Hierarchy == "public" {
|
|
} else if a.Hierarchy == "public" {
|
|
- return strings.ReplaceAll(filepath.Clean(subpath), "\\", "/"), nil
|
|
|
|
|
|
+ return toWinPath(filepath.ToSlash(filepath.Clean(subpath))), nil
|
|
}
|
|
}
|
|
|
|
|
|
return "", arozfs.ErrVpathResolveFailed
|
|
return "", arozfs.ErrVpathResolveFailed
|