easyidp.data.downloader._fetch_openxlab_file_info

easyidp.data.downloader._fetch_openxlab_file_info(mirror_config)

Resolve CDN download URL and metadata for an OpenXLab file.

Parameters:

mirror_config (Mapping) – Mirror config with dataset_repo and source_path keys.

Returns:

Keys url, size, sha256.

Return type:

dict

Raises:

RuntimeError – If the API response is missing required fields or has a non-zero code.