MCPcopy Index your code
hub / github.com/nikivdev/go / normalizeWorkspacePath

Function normalizeWorkspacePath

workspace.go:223–233  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

221}
222
223func normalizeWorkspacePath(raw string) (string, error) {
224 expanded, err := expandUserPath(raw)
225 if err != nil {
226 return "", err
227 }
228 abs, err := filepath.Abs(expanded)
229 if err != nil {
230 return "", err
231 }
232 return filepath.Clean(abs), nil
233}
234
235func resolveWorkspaceFilePath(raw string) (string, error) {
236 path := strings.TrimSpace(raw)

Callers 2

workspaceAddPathFunction · 0.70
workspaceRemovePathFunction · 0.70

Calls 1

expandUserPathFunction · 0.70

Tested by

no test coverage detected