'Check whether a path is ignored.
For directories, include a trailing slash.
:return: status is None if file is not mentioned, True if it is
included, False if it is explicitly excluded.'

def is_ignored(self, path):

    status = None
    for pattern in self.find_matching(path):
        status = pattern.is_exclude
    return status
