drone-scp/path_windows.go
appleboy 0c387532cf
refactor: improve code clarity and testing reliability across modules
- Use `strings.ReplaceAll` instead of `strings.Replace` for clarity and conciseness

Signed-off-by: appleboy <appleboy.tw@gmail.com>
2025-04-12 19:42:12 +08:00

13 lines
195 B
Go

//go:build windows
// +build windows
package main
import (
"strings"
)
func getRealPath(path string) string {
return "/" + strings.ReplaceAll(strings.ReplaceAll(path, ":", ""), "\\", "/")
}