소스 검색

Restore to previous implementation

Toby Chui 3 년 전
부모
커밋
e669755017
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mod/filesystem/abstractions/smbfs/smbfs.go

+ 2 - 2
mod/filesystem/abstractions/smbfs/smbfs.go

@@ -166,9 +166,9 @@ func (a ServerMessageBlockFileSystemAbstraction) VirtualPathToRealPath(subpath s
 	subpath = filterFilepath(subpath)
 
 	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" {
-		return strings.ReplaceAll(filepath.Clean(subpath), "\\", "/"), nil
+		return toWinPath(filepath.ToSlash(filepath.Clean(subpath))), nil
 	}
 
 	return "", arozfs.ErrVpathResolveFailed