Using gsutil ls, this function is able to retrieve all objects stored in a gclould bucket.

kub_list_bucket(path, folder = "", recursive = FALSE)

Arguments

path

Path to task directory (if missing, defaults to the most recently created task)

folder

Bucket directory from where to list files

recursive

Whether to list files inside folders (FALSE by default)

Value

A character vector with file names

References

https://cloud.google.com/storage/docs/gsutil/commands/ls