drone-scp/path_windows.go

13 lines
195 B
Go
Raw Normal View History

2022-06-15 15:29:09 +08:00
//go:build windows
2017-01-03 16:59:00 +08:00
// +build windows
package main
import (
"strings"
)
func getRealPath(path string) string {
return "/" + strings.ReplaceAll(strings.ReplaceAll(path, ":", ""), "\\", "/")
2017-01-03 16:59:00 +08:00
}