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

Method Matches

pkg/watch/dockerignore.go:39–44  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

37}
38
39func (i dockerPathMatcher) Matches(f string) (bool, error) {
40 if !filepath.IsAbs(f) {
41 f = filepath.Join(i.repoRoot, f)
42 }
43 return i.matcher.MatchesOrParentMatches(f)
44}
45
46func (i dockerPathMatcher) MatchesEntireDir(f string) (bool, error) {
47 matches, err := i.Matches(f)

Callers 1

MatchesEntireDirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected