b2DownloadFileById downloads a file from the user's account on the
Backblaze B2 cloud storage product.
Usage
b2DownloadFileById(fileId, overwrite = FALSE)
Arguments
fileId
The unique identifier of the file to be downloaded. File IDs
may be obtained through the b2ListFiles, b2ListFileVersions
and b2UploadFile functions in this package.
overwrite
Binary TRUE or FALSE decision to overwrite any files in the
current working directory, whose names match the downloaded file name.
Value
If successful the response headers include the Content-Type that was
specified when the file was uploaded. They also include the X-Bz-FileName
and X-Bz-Content-Sha1 headers. The X-Bz-FileName uses percent-encoding, as
if it were a URL parameter. If successful, the file will be downloaded to
the current working directory.
Details
This function downloads a file from the user's account on the Backblaze B2
cloud storage product using the file's unique ID only. Files of the same name
may have multiple versions stored on B2. Therefore, every file version will
have a unique ID, which can be used for downloading that specific version.
Further details regarding this API call are available here: