rllm.utils.download_url¶
- class rllm.utils.download_url(url: str, folder: str, filename: str | None = None)[source]¶
Bases:
Download the content of a URL to a specific folder.
- Parameters:
url (str) – The URL to download from.
folder (str) – The destination folder.
filename (str, optional) – The filename of the downloaded file. If set to
None, the filename is inferred from the URL. (default:None)
- Returns:
The local path to the downloaded file.
- Return type:
str