code: def match(self, filepath):
          
          # no extension?
          if filepath.find(".") == -1:
              return False
  
          # match extension
          return filepath.lower().split(".")[-1] in self.__extensions
docs: The function to check file.
          Should return True if match, False otherwise.