How do you make many files public in Google Cloud Storage?

前端 未结 6 540
独厮守ぢ
独厮守ぢ 2020-12-12 14:31

I have 1000 files in Google Cloud Storage to make public, or in general a directory hierarchy.

In the Web UI, I can only seem to make one at a time public.

I

6条回答
  •  爱一瞬间的悲伤
    2020-12-12 15:37

    When you run: gsutil -m acl set -R -a public-read gs://bucket you define public read for all the objects currently in your bucket, but when you upload new files they wont be public by default.

    What I found is that is worth to define a bucket default acl as public-read gsutil defacl set public-read gs://bucket

提交回复
热议问题