Closed PaulMontesinosOA closed 3 years ago
I think you need to specify the sub-folder in your object name not the bucket name:
gcs_get_object(object_name = "subfolder/test_textfile_subfolder.txt",
bucket = "gs://test_export_r")
Oh, it works. I now feel embarrassed that the solution is that simple.
Actually, specifying the full path in the object_name argument also works:
gcs_get_object(object_name = "gs://test_export_r/subfolder/test_textfile_subfolder.txt")
Thank you for your help!
No worries. Yes you can pass the full gs:// URI too as a convenience.
Hello,
When I try to retrieve an object from a bucket, I get the following error when the object is in a subfolder:
However, when I do the same with a file that is not in a subfolder, it works perfectly.
Here is the
sessionInfo()
output if that can help: