pub fn download(url: &str, dest: &Path) -> Result<()>Expand description
Downloads url to dest, following redirects.
Creates parent directories of dest if they do not exist.
ยงErrors
Returns an error if the HTTP request fails, the server returns a non-success
status, or writing to dest fails.