In older versions of the Azure SDK for Python, I could call BaseBlobService.exists() to check if a container or blob exists.
I don't see any equivalent function in the documentation for BlobServiceClient, ContainerClient or BlobClient. The functions to create/overwrite a container or blob will throw an error if the object already exists, but there are times when I just want to verify something exists without modifying it.
What is the correct way to check if a blob exists in azure-storage-blob v12+?
In older versions of the Azure SDK for Python, I could call
BaseBlobService.exists()to check if a container or blob exists.I don't see any equivalent function in the documentation for BlobServiceClient, ContainerClient or BlobClient. The functions to create/overwrite a container or blob will throw an error if the object already exists, but there are times when I just want to verify something exists without modifying it.
What is the correct way to check if a blob exists in azure-storage-blob v12+?