mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 15:36:31 +01:00
12 lines
220 B
Go
12 lines
220 B
Go
|
package fsremote
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
func pathToCanonical(path string) string {
|
||
|
return strings.ReplaceAll(path, "\\", "/")
|
||
|
}
|
||
|
|
||
|
func canonicalPathToLocal(path string) string {
|
||
|
return strings.ReplaceAll(path, "/", "\\")
|
||
|
}
|