小编All*_*len的帖子

How can i download the files inside a folder on google cloud platform using python?

from google.cloud import storage
client = storage.Client()
bucket = client.get_bucket([bucket_name])
blob = bucket.get_blob([path to the .txt file])
blob.download_to_filename([local path to the downloaded .txt file])
Run Code Online (Sandbox Code Playgroud)

How can i adjust my python code to add something like for filename in os.listdir(path): to just copy all the files in a certain folder on there locally

python python-3.x google-cloud-platform

2
推荐指数
1
解决办法
6118
查看次数

标签 统计

google-cloud-platform ×1

python ×1

python-3.x ×1