gpt4 book ai didi

google-cloud-storage - 使用 gsutil 执行 rsync 时公开文件

转载 作者:行者123 更新时间:2023-12-05 08:20:51 28 4
gpt4 key购买 nike

当执行通常的 gsutil -m rsync -r 时。 gs://bucket/ 我希望文件默认是公开的,而不必执行 gsutil -m acl set -R -a public-read gs://bucket之后。

这可能吗?

最佳答案

gsutil 现在有一个 -a 标志,用于在复制的文件上设置固定 ACL:

gsutil -m rsync -a public-read -r 。 gs://bucket/

关于google-cloud-storage - 使用 gsutil 执行 rsync 时公开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36823167/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com