@staticmethod
def directory_filter(directory, unwanted_dirs):
    """
        This method weeds out unwanted hidden directories from the model archive .mar file
        :param directory:
        :param unwanted_dirs:
        :return:
        """
    if directory in unwanted_dirs:
        return False
    if directory.startswith('.'):
        return False
    return True
