download

fun download(resource: DownloadClient.Resource, target: Path)(source)

Downloads a resource, checks its integrity, and stores it to a target path

Throws

If the resource couldn't be downloaded

If the expected and actual checksum of the downloaded file don't match.