pub async fn download_to_file(
    name: &str,
    retry: &Retry,
    object_service: &Object,
    file: File
) -> Result<(File, String)>
Expand description

Download an object into the given File. The file must be open in write mode and must be clone-able (that is, File::try_clone() must succeed) in order to support retried downloads. The File is returned with all write operations complete but with unspecified position. Returns (file, content_type).