Return True or False depending on whether the ``path`` should be ignored (if it matches any pattern in ``ignore_patterns``).
(path, patterns)
| 6 | |
| 7 | |
| 8 | def matches_patterns(path, patterns): |
| 9 | """ |
| 10 | Return True or False depending on whether the ``path`` should be |
| 11 | ignored (if it matches any pattern in ``ignore_patterns``). |
| 12 | """ |
| 13 | return any(fnmatch.fnmatchcase(path, pattern) for pattern in patterns) |
| 14 | |
| 15 | |
| 16 | def get_files(storage, ignore_patterns=None, location=""): |
no outgoing calls
no test coverage detected