gcs_contents: Get contents of GP Google Cloud Storage bucket

gcs_contentsR Documentation

Get contents of GP Google Cloud Storage bucket

Description

A shallow wrapper for googleCloudStorageR::gcs_list_objects(). If WD supplied, it will only show objects for that project.

Usage

gcs_contents(
  WD = "?",
  cloud_dir = NULL,
  bucket = "gp-cloud",
  detail = "summary",
  pattern = NULL,
  ...
)

Arguments

WD

WD working directory, passed to parse_wd(). Default="?" will pick unit. Supplying WD will give you the subset for a given unit.

cloud_dir

default=NULL; which directory in the chosen bucket do you want to list? Options= "css","icons","lessons","logos","people"

bucket

default="GP-Studio"; which bucket do you want to pick?

detail

the detail parameter for googleCloudStorageR::gcs_list_objects(); options= c("summary", "more", "full"); default="more"

pattern

default=NULL; pattern for filtering rows

...

other parameters passed to googleCloudStorageR::gcs_list_objects()

Value

a Tibble with success, filenames and download links

See Also

Other google cloud storage: gcs_add(), gcs_delete(), upload_assets()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.