MCPcopy Index your code
hub / github.com/coder/coder / normalizeWorkspacePath

Function normalizeWorkspacePath

coderd/x/chatd/chattool/planpathresolve.go:48–54  ·  view source on GitHub ↗
(pathString string)

Source from the content-addressed store, hash-verified

46}
47
48func normalizeWorkspacePath(pathString string) string {
49 pathString = strings.TrimSpace(pathString)
50 if pathString == "" {
51 return ""
52 }
53 return path.Clean(filepath.ToSlash(pathString))
54}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected