code: def match_pattern(self, path):
          
          for pattern in self.__pattern:
              if len(fnmatch.filter([path], pattern)) > 0:
                  return True
          return False
docs: Return if given path match the pattern(s).
  
          :param path: path to check.
          :return: True if match, False otherwise.