MCPcopy Index your code
hub / github.com/jetify-com/devbox / OSPath

Method OSPath

internal/patchpkg/builder.go:418–424  ·  view source on GitHub ↗

OSPath translates a package-relative path to an operating system path.

(path string)

Source from the content-addressed store, hash-verified

416
417// OSPath translates a package-relative path to an operating system path.
418func (p *packageFS) OSPath(path string) (string, error) {
419 local, err := filepath.Localize(path)
420 if err != nil {
421 return "", err
422 }
423 return filepath.Join(p.storePath, local), nil
424}
425
426// allFiles iterates over all files in fsys starting at root. It silently
427// ignores errors.

Callers 8

ReadlinkMethod · 0.95
setGlibcMethod · 0.80
setGccMethod · 0.80
prependRPATHMethod · 0.80
copyDirMethod · 0.80
copyFileMethod · 0.80
copySymlinkMethod · 0.80
findCUDAMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected