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