in web-backend/backendUtils/blob_functions.py [0:0]
def list_blobs(container_name):
"""
List all blobs in a container.
Args:
container_name (str): Name of the container
Returns:
list: A list of blob objects in the container
Raises:
Exception: If there's an error listing the blobs
"""
try:
container_client = blob_service_client.get_container_client(container_name)
blob_list = container_client.list_blobs()
return blob_list
except Exception as e:
logging.error(f"Error listing blobs in container {container_name}: {str(e)}")
raise