b2_download_file_by_id: Download a file

Description Usage Arguments Details Value

View source: R/b2_download_files.R

Description

Download a file in B2 by the file id

Usage

1
b2_download_file_by_id(file_id, output_file, overwrite = FALSE, ...)

Arguments

file_id

The file id

output_file

(Optional) Path of the file on disk to which to save the downloaded content

overwrite

Whether to overwrite the existing output file

...

Optional parameters (see details)

Details

See https://www.backblaze.com/b2/docs/b2_download_file_by_id.html

The file id can be obtained from a call to b2_list_file_names.

To download a file using the bucket name and file use, call b2_download_file_by_name

Optional parameters

An optional arguments to the API call can be passed as named arguments

Range - A byte-range request, as described in https://www.backblaze.com/b2/docs/b2_download_file_by_id.html

Value

The response from httr::GET


mvanhala/B2R documentation built on Aug. 26, 2020, 10:42 a.m.