Skip to content

Client.download

async def Client.download(
asset: Asset,
destination: str | PathLike[str],
*,
overwrite: bool = False,
) -> Path

Atomically download an asset to an exact local path.

asset Asset

The asset to resolve and download.

destination str | PathLike[str]

The destination path. Missing parent directories are created.

overwrite bool

Whether to replace an existing destination. Defaults to False.

The destination as a Path.