MCPcopy Index your code
hub / github.com/opencontainers/runtime-spec / formatFilePath

Function formatFilePath

schema/validate.go:90–100  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

88}
89
90func formatFilePath(path string) (string, error) {
91 if _, err := os.Stat(path); err != nil {
92 return "", err
93 }
94
95 absPath, err := filepath.Abs(path)
96 if err != nil {
97 return "", err
98 }
99 return absPath, nil
100}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected