cloudyr / googleCloudStorageR

Google Cloud Storage API to R

Home Page:https://code.markedmondson.me/googleCloudStorageR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There doesn't seem to be a way to retrieve custom meta data

drwilkins opened this issue · comments

When I set up a custom meta entry, it would be great if this were returned with gcs_list_objects().

For example,

meta_cust<-googleCloudStorageR::gcs_metadata_object(object_name="gorgeous_landscape.png" ,metadata = list("author"="Ansel Adams"))

googleCloudStorageR::gcs_upload( file= "gorgeous_landscape.png", bucket="gp-cloud", object_metadata=meta_cust)

x <- googleCloudStorageR::gcs_get_object("gorgeous_landscape.png",meta=T, bucket="gp-cloud")
x
# Meta data nowhere to be seen

image

#The most useful enhancement would be to include meta data in the gcs_list_objects() call (e.g. as a nested element in a tibble)

googleCloudStorageR::gcs_list_objects(bucket="gp-cloud",detail = "full",prefix="gorgeous")

image

Thanks for listening! (And for making Google Cloud Storage accessible for those of us who only know R :)