|
@@ -177,7 +177,7 @@ func (a ServerMessageBlockFileSystemAbstraction) VirtualPathToRealPath(subpath s
|
|
func (a ServerMessageBlockFileSystemAbstraction) RealPathToVirtualPath(fullpath string, username string) (string, error) {
|
|
func (a ServerMessageBlockFileSystemAbstraction) RealPathToVirtualPath(fullpath string, username string) (string, error) {
|
|
fullpath = filterFilepath(fullpath)
|
|
fullpath = filterFilepath(fullpath)
|
|
fullpath = strings.TrimPrefix(fullpath, "\\")
|
|
fullpath = strings.TrimPrefix(fullpath, "\\")
|
|
- vpath := a.UUID + ":/" + filterFilepath(fullpath)
|
|
|
|
|
|
+ vpath := a.UUID + ":/" + filepath.ToSlash(fullpath)
|
|
return vpath, nil
|
|
return vpath, nil
|
|
}
|
|
}
|
|
|
|
|