(path []string, isDir bool)
| 24 | } |
| 25 | |
| 26 | func (m *matcher) Match(path []string, isDir bool) bool { |
| 27 | n := len(m.patterns) |
| 28 | for i := n - 1; i >= 0; i-- { |
| 29 | if match := m.patterns[i].Match(path, isDir); match > NoMatch { |
| 30 | return match == Exclude |
| 31 | } |
| 32 | } |
| 33 | return false |
| 34 | } |