mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-03-05 14:57:01 -05:00
- Use `strings.ReplaceAll` instead of `strings.Replace` for clarity and conciseness Signed-off-by: appleboy <appleboy.tw@gmail.com>
13 lines
195 B
Go
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, ":", ""), "\\", "/")
|
|
}
|