Reputation: 3
I have a google cloud storage (bucket) with two folders (folder A and folder B). I want to make folder A private and folder B public. Is this possible ?
Upvotes: 0
Views: 1235
Reputation: 298
Cloud Storage operates with a flat namespace, which means that folders don't actually exist within Cloud Storage. The Cloud Console creates a visual representation of folders that resembles a local file browser.
So the anwser to your question is "NO". Since the folders don't actually exist you can't make them public or private even using ACLs. You can only make the objects stored inside them as public or private using ACLs.
Much better way would be to create seperate buckets as folders and then make one bucket private and other public.
Check more about cloud storage folders here
Upvotes: 1