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

Function findFile

pkg/remote/git.go:257–265  ·  view source on GitHub ↗
(names []string, pwd string)

Source from the content-addressed store, hash-verified

255}
256
257func findFile(names []string, pwd string) (string, error) {
258 for _, n := range names {
259 f := filepath.Join(pwd, n)
260 if fi, err := os.Stat(f); err == nil && !fi.IsDir() {
261 return f, nil
262 }
263 }
264 return "", api.ErrNotFound
265}
266
267var _ loader.ResourceLoader = gitRemoteLoader{}

Callers 1

LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected