b2_files_by_bucket_name: List file names

Description Usage Arguments Details Value

View source: R/b2_list_file_names.R

Description

List of files in a B2 bucket, starting at a given file name

Usage

1
2
3
4
5
b2_files_by_bucket_name(bucket_name, account_id = Sys.getenv("B2_ACCOUNT_ID"),
  ...)

b2_files_by_bucket_name_df(bucket_name,
  account_id = Sys.getenv("B2_ACCOUNT_ID"), ...)

Arguments

bucket_name

Name of the bucket to get list of files

account_id

B2 account ID

...

Optional parameters (see details)

Details

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

In this function, you provide the name of the bucket, as opposed to b2_list_file_names, where you provide the id of the bucket.

Optional parameters

Optional arguments to the API call can be passed as named arguments

startFileName - The first file name to return

maxFileCount - Maximum number of files to return (defaults to 100, maximum 10000)

prefix - Return files starting with prefix

delimiter - Used to limit return to top folder or single subfolder

Value

b2_files_by_bucket_name returns a list of the JSON response.

b2_files_by_bucket_name_df returns a tibble of the file information.


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