Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 在Google云平台存储中一次公开共享多个文件_Google Cloud Platform_Google Cloud Storage - Fatal编程技术网

Google cloud platform 在Google云平台存储中一次公开共享多个文件

Google cloud platform 在Google云平台存储中一次公开共享多个文件,google-cloud-platform,google-cloud-storage,Google Cloud Platform,Google Cloud Storage,我习惯于手动将内容上传到谷歌云平台存储,并一次公开共享多个文件(选中所有复选框,然后公开共享按钮) 现在“公开共享”按钮不见了,所以我必须手动检查每个文件。听起来像是一个大倒退。 有人知道另一种自动化此功能的解决方案吗?您可以使用gsutil: gsutil acl set public-read gs://your-bucket/* 如果是大量对象,请使用-m选项执行多线程工作: gsutil -m acl set public-read gs://your-bucket/* 您可以使用g

我习惯于手动将内容上传到谷歌云平台存储,并一次公开共享多个文件(选中所有复选框,然后公开共享按钮)

现在“公开共享”按钮不见了,所以我必须手动检查每个文件。听起来像是一个大倒退。 有人知道另一种自动化此功能的解决方案吗?

您可以使用gsutil:

gsutil acl set public-read gs://your-bucket/*
如果是大量对象,请使用-m选项执行多线程工作:

gsutil -m acl set public-read gs://your-bucket/*
您可以使用gsutil:

gsutil acl set public-read gs://your-bucket/*
如果是大量对象,请使用-m选项执行多线程工作:

gsutil -m acl set public-read gs://your-bucket/*

伟大的谢谢你的回答。我不习惯使用gsutil工具,但我认为它非常适合我的需要。如果它对其他用户有帮助:您可以添加-r标志以递归方式执行:gsutil[-m]acl set-r public read gs://your bucket/*太棒了!谢谢你的回答。我不习惯使用gsutil工具,但我认为它非常适合我的需要。如果它对其他用户有帮助:您可以添加-r标志以递归方式执行:gsutil[-m]acl set-r public read gs://your bucket/*