-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Is your feature request related to a problem? Please describe.
I have a many blobs in a blob storage folder and would like to synchronize them with local copies i.e. download blobs that are missing locally or have been modified in the azure storage since the last synchronization, based on the last modification data and/or the MD5 hash.
azcopy supports that feature trough azcopy sync https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs-synchronize
It would be great to have the same feature through the Python SDK for a better integration in the python ecosystem.
Describe the solution you'd like
I would like a method
def synchronize_blobs(blobs_prefix:Optional[str]=None, blobs_list:Optional[list[str]]=None, local_folder:str, md5:bool=True)
that can take either a prefix or an explicit list of blobs and synchronize with files in a local folder.
I have implemented my own class derived from azure.storage.blob.ContainerClient to support that feature, but I would prefer it to be supported by the SDK out of the box