def METHOD_NAME(self, dirpath, filename):
    full_path = os.path.join(dirpath, filename)
    if self.regex and not self.regex.search(filename):
        return None
    if self.nregex and self.nregex.search(filename):
        return None
    if self.wholeregex and not self.wholeregex.search(full_path):
        return None
    if self.nwholeregex and self.nwholeregex.search(full_path):
        return None
    return full_path