MCPcopy Create free account
hub / github.com/compose-spec/compose-go / findFiles

Function findFiles

cli/options.go:579–588  ·  view source on GitHub ↗
(names []string, pwd string)

Source from the content-addressed store, hash-verified

577}
578
579func findFiles(names []string, pwd string) []string {
580 candidates := []string{}
581 for _, n := range names {
582 f := filepath.Join(pwd, n)
583 if _, err := os.Stat(f); err == nil {
584 candidates = append(candidates, f)
585 }
586 }
587 return candidates
588}
589
590func absolutePaths(p []string) ([]string, error) {
591 var paths []string

Callers 1

WithDefaultConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…