【发布时间】:2020-09-23 04:16:21
【问题描述】:
我想从 Azure Blob 存储容器中读取所有文件,并将它们保存在我的本地计算机上。将它们保存在我的本地计算机上后,我想从 Blob 存储中删除它们。
我在堆栈上找到了this 解决方案。但是,这只是为了读取一个 blob 文件(您需要在其中指定文件名)。
# The example from stack, to read in 1 file.
from azure.storage.blob import BlockBlobService
block_blob_service = BlockBlobService(account_name='myaccount', account_key='mykey')
block_blob_service.get_blob_to_path('mycontainer', 'myblockblob', 'out-sunset.png')
【问题讨论】:
标签: python azure azure-blob-storage