MCPcopy Index your code
hub / github.com/dagger/dagger / absPath

Function absPath

core/util.go:37–47  ·  view source on GitHub ↗
(workDir string, containerPath string)

Source from the content-addressed store, hash-verified

35}
36
37func absPath(workDir string, containerPath string) string {
38 if path.IsAbs(containerPath) {
39 return containerPath
40 }
41
42 if workDir == "" {
43 workDir = "/"
44 }
45
46 return path.Join(workDir, containerPath)
47}
48
49func findUID(f io.Reader, uname string) (int, error) {
50 users, err := user.ParsePasswdFilter(f, func(u user.User) bool {

Callers 14

WithMountedDirectoryMethod · 0.70
WithMountedFileMethod · 0.70
WithMountedCacheMethod · 0.70
WithMountedTempMethod · 0.70
WithMountedSecretMethod · 0.70
WithoutMountMethod · 0.70
WithUnixSocketMethod · 0.70
WithoutUnixSocketMethod · 0.70
locatePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected