Skip to main content

download_file

Function download_file 

Source
pub async fn download_file(
    dst_name: String,
    size: u64,
    data: BoxedAsyncRead,
) -> Result<(), OpenStackCliError>
Expand description

Download content from the reqwests response stream. When dst_name = “-” - write content to the stdout. Otherwise write into the destination and display progress_bar