code: def match(self, filepath):
          
          for pattern in self.__pattern:
              if len(fnmatch.filter([filepath], pattern)) > 0:
                  return True
          return False
docs: The function to check file.
          Should return True if match, False otherwise.