The function to check file.
        Should return True if match, False otherwise.

def match(self, filepath):
        """
        The function to check file.
        Should return True if match, False otherwise.
        """
        # no extension?
        if filepath.find(".") == -1:
            return False

        # match extension
        return filepath.lower().split(".")[-1] in self.__extensions