That might sound stupid… is there anything like sub-buckets in GCS? I’ve never heard of it.
prehistoric-activity-61023
02/05/2022, 10:17 AM
Unless… you meant “how to a create empty folder within GCS bucket”. If so, you can achieve that e.g. by explicitly creating an object with trailing slash in name:
field is required but it will be ignored in case object has trailing slash in name.
Just a reminder, GCS (and basically most of object storage solutions) uses a flat filesystem. That means, you don’t have to actually create empty folders in order to store things within them. You can directly upload file
parent_folder/subfolder/myfile.txt
and it will “create” parent directories automatically (cause in fact, it’s just a long name with slashes and not a real tree-like structure).
🙌 1
g
green-school-95910
02/07/2022, 11:12 AM
I believe when you create a folder from the web console it sets a specific mime type to identify it as a folder marker. You need that if you want to
gsutil rsync
somewhere including the empty folder if I'm not mistaken
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.