blob-adapter_4.py 416 B

12345678910
  1. def list_blobs(self):
  2. print("\nList blobs in the container")
  3. self.container_client = self.blob_service_client.get_container_client(
  4. container=self.get_config('container_name'))
  5. blob_list = self.container_client.list_blobs()
  6. blobs = []
  7. for blob in blob_list:
  8. # print("\t Blob name: " + blob.name)
  9. blobs.append(blob.name)
  10. return blobs