blob

How to rename an already existing blob in azure storage explorer using python

How to rename an already existing blob in azure storage explorer using python Question: I want to rename a blob file in Azure storage explorer. It’s in a folder of a specific blob container.I’m using python. I used this code. sourceFileName = abc.xlsx destinationFileName = xyz.xlsx sourcePath = ‘cloudops-resources/outputs/’ destinationPath = ‘cloudops-resources/outputs/’ blob_url = blob_service.make_blob_url(sourcePath,sourceFileName) …

Total answers: 1

Removing entire string duplicates from a list

Removing entire string duplicates from a list Question: I am running into an issue when trying to removing duplicates from a list. def my_list_bucket(self, bucketName, limit=sys.maxsize): #delimiter=’/’): a_bucket = self.storage_client.lookup_bucket(bucketName) bucket_iterator = a_bucket.list_blobs() for resource in bucket_iterator: path_parts = resource.name.split(‘/’) date_folder = path_parts[0] publisher_folder = path_parts[1] desired_path = date_folder + ‘/’ + publisher_folder + ‘/’ …

Total answers: 1

ConditionNotMet error while trying to download azure blob using python

ConditionNotMet error while trying to download azure blob using python Question: I was trying to download azure blob from python using the azure.storage.blob BlobServiceClient. There are various blobs inside the containers which are big in size, the error happens when the code is trying to download files around 100mb or higher. The code works fine …

Total answers: 1