list_files_in_buckets: Return a dataframe of accessable files, including full path...

View source: R/list.R

list_files_in_bucketsR Documentation

Return a dataframe of accessable files, including full path and filesize information Note: The listing includes folders as well as files

Description

Return a dataframe of accessable files, including full path and filesize information Note: The listing includes folders as well as files

Usage

list_files_in_buckets(
  bucket_filter = NULL,
  prefix = NULL,
  path_only = FALSE,
  max = NULL
)

Arguments

bucket_filter

return only buckets that match this character vector of bucket names e.g. "alpha-everyone"

prefix

filter files which begin with this prefix e.g. 'my_folder/'

path_only

boolean - return the accessible paths only, as a character vector

max

An integer indicating the maximum number of keys to return. The function will recursively access the bucket in case max > 1000. Use max = Inf to retrieve all objects.

Value

data frame with path of all files available to you in S3.

Examples

list_files_in_buckets(bucket_filter = "alpha-everyone", prefix = "GeographicData", path_only = FALSE, max = Inf)


moj-analytical-services/Rs3tools documentation built on Aug. 9, 2024, 1:27 a.m.