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