MCPcopy
hub / github.com/docker/compose / Dir

Method Dir

pkg/remote/git.go:133–135  ·  pkg/remote/git.go::gitRemoteLoader.Dir
(path string)

Source from the content-addressed store, hash-verified

131}
132
133func (g gitRemoteLoader) Dir(path string) string {
134 return g.known[path]
135}
136
137// validateGitSubDir ensures a subdirectory path is contained within the base directory
138// and doesn't escape via path traversal. Unlike validatePathInBase for OCI artifacts,

Callers 15

TestValidatePathInBaseFunction · 0.45
WriteFileMethod · 0.45
WriteSymlinkMethod · 0.45
StartMethod · 0.45
greatestExistingAncestorFunction · 0.45
doTestFunction · 0.45
TestProviderStopHookFunction · 0.45
TestProviderRawSetEnvFunction · 0.45

Calls

no outgoing calls