Bladeren bron

Removed toWinpath from V2R in smbgfs

Toby Chui 3 jaren geleden
bovenliggende
commit
ca59b3e056
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 0 0
      legacy/backup.go.disabled
  2. 2 2
      mod/filesystem/abstractions/smbfs/smbfs.go

+ 0 - 0
backup.go.disabled → legacy/backup.go.disabled


+ 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 toWinPath(filepath.ToSlash(filepath.Clean(filepath.Join("users", username, subpath)))), nil
+		return filepath.ToSlash(filepath.Clean(filepath.Join("users", username, subpath))), nil
 	} else if a.Hierarchy == "public" {
-		return toWinPath(filepath.ToSlash(filepath.Clean(subpath))), nil
+		return filepath.ToSlash(filepath.Clean(subpath)), nil
 	}
 
 	return "", arozfs.ErrVpathResolveFailed