1742
1742
r"""Check whether the filename matches an ignore pattern.
1744
1744
Patterns containing '/' or '\' need to match the whole path;
1747
1749
If the file is ignored, returns the pattern which caused it to
1748
1750
be ignored, otherwise None. So this can simply be used as a
1750
1752
if getattr(self, '_ignoreglobster', None) is None:
1752
1754
return self._ignoreglobster.match(filename)