1728
1731
r"""Check whether the filename matches an ignore pattern.
1730
1733
Patterns containing '/' or '\' need to match the whole path;
1733
1738
If the file is ignored, returns the pattern which caused it to
1734
1739
be ignored, otherwise None. So this can simply be used as a
1736
1741
if getattr(self, '_ignoreglobster', None) is None:
1738
1743
return self._ignoreglobster.match(filename)