Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.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
Python 将文件批量上传到google bucket的最快方式_Python_Google Cloud Platform_Google Bucket - Fatal编程技术网

Python 将文件批量上传到google bucket的最快方式

Python 将文件批量上传到google bucket的最快方式,python,google-cloud-platform,google-bucket,Python,Google Cloud Platform,Google Bucket,我有大量的PDF文件要上传到google bucket。 将所有这些文件上传到google bucket的最快方式是什么? 我曾经尝试过使用拖放上传,但是如果我创建一个python脚本,或者有没有更快的方法将数据批量上传到GCP bucket,这会花费很多时间 非常感谢您的帮助。请特别使用gsutil cp命令。与python无关,但可能会有所帮助,因为它有一个并行选项-m。此外,-m开关支持并行上载,从而加快整个操作。

我有大量的PDF文件要上传到google bucket。 将所有这些文件上传到google bucket的最快方式是什么? 我曾经尝试过使用拖放上传,但是如果我创建一个python脚本,或者有没有更快的方法将数据批量上传到GCP bucket,这会花费很多时间


非常感谢您的帮助。

请特别使用
gsutil cp
命令。

与python无关,但可能会有所帮助,因为它有一个并行选项
-m
。此外,-m开关支持并行上载,从而加快整个操作。