MCPcopy Index your code
hub / github.com/cortexlabs/cortex / UserRelToAbsPath

Function UserRelToAbsPath

pkg/lib/files/files.go:271–277  ·  view source on GitHub ↗
(relativePath string)

Source from the content-addressed store, hash-verified

269}
270
271func UserRelToAbsPath(relativePath string) string {
272 cwd, err := os.Getwd()
273 if err != nil {
274 return relativePath
275 }
276 return RelToAbsPath(relativePath, cwd)
277}
278
279func PathRelativeToCWD(absPath string) string {
280 cwd, err := os.Getwd()

Callers 1

initFunction · 0.92

Calls 1

RelToAbsPathFunction · 0.85

Tested by

no test coverage detected