MCPcopy
hub / github.com/cli/cli / NormalizeRelativePath

Function NormalizeRelativePath

pkg/cmd/attestation/test/path.go:8–13  ·  view source on GitHub ↗
(posixPath string)

Source from the content-addressed store, hash-verified

6)
7
8func NormalizeRelativePath(posixPath string) string {
9 if runtime.GOOS == "windows" {
10 return strings.ReplaceAll(posixPath, "/", "\\")
11 }
12 return posixPath
13}

Calls

no outgoing calls