Skip to main content
Atomically download an asset to an exact local path.

Parameters

Asset
The asset to resolve and download.
str | PathLike[str]
The destination path. Missing parent directories are created.
bool
Whether to replace an existing destination. Defaults to False.

Returns

The destination as a Path.