googleCloudStorageR icon indicating copy to clipboard operation
googleCloudStorageR copied to clipboard

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

Open drwilkins opened this issue 1 year ago • 0 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 :)

drwilkins avatar Aug 31 '23 20:08 drwilkins