(f string)
| 111 | } |
| 112 | |
| 113 | func (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 | |
| 126 | func (c CompositePathMatcher) MatchesEntireDir(f string) (bool, error) { |
| 127 | for _, t := range c.Matchers { |