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

Method Matches

pkg/watch/notify.go:113–124  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

111}
112
113func (c CompositePathMatcher) Matches(f string) (bool, error) {
114 for _, t := range c.Matchers {
115 ret, err := t.Matches(f)
116 if err != nil {
117 return false, err
118 }
119 if ret {
120 return true, nil
121 }
122 }
123 return false, nil
124}
125
126func (c CompositePathMatcher) MatchesEntireDir(f string) (bool, error) {
127 for _, t := range c.Matchers {

Callers

nothing calls this directly

Calls 1

MatchesMethod · 0.65

Tested by

no test coverage detected