def list_checkpoint_files(parent_dir):
    """Get failed indicator's file names.

    Args:
        parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
        on file share.

    Returns:
        list: list of file names of failed indicators
    """
    __method_name = inspect.currentframe().f_code.co_name
    try:
        files_list = list(parent_dir.list_directories_and_files())
        file_names = []
        if (len(files_list)) > 0:
            for file in files_list:
                file_names.append(file["name"])
            return file_names
        else:
            return None
    except ResourceNotFoundError:
        applogger.error(
            "{}(method={}) : {} : No Failed Indicators File Found.".format(
                consts.LOGS_STARTS_WITH, __method_name, consts.RETRY_FAILED_INDICATORS
            )
        )
        return None
    except Exception as error:
        applogger.error(
            "{}(method={}) : {} : error while getting list of checkpoint files, Error : {}.".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.RETRY_FAILED_INDICATORS,
                error,
            )
        )
        raise CofenseIntelligenceException()
Get failed indicator's file names.

    Args:
        parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
        on file share.

    Returns:
        list: list of file names of failed indicators
    
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/RetryFailedIndicators/retry_failed_indicators.py