Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if Azure Blob file Exists or Not

Tags:

I want to check a particular file exist in Azure Blob Storage. Is it possible to check by specifying it's file name? Each time i got File Not Found Error.

like image 485
Hope Avatar asked Jun 14 '12 12:06

Hope


People also ask

How do I check azure blob?

Browsing your Azure Blobs using Azure Storage Explorer. Another option is to use Azure Storage Explorer which is now built into the Azure portal (preview). From with the Azure Storage Explorer Application, you can browse the containers of that storage account and view the size of each blob inside each container.

How do I search for files in BLOB storage?

1 Answer. Show activity on this post. The little filter icon on the right side when you are viewing a container is probably what you're looking for. You can also select Flat listmode to show all of the blobs in the entire container in one list.


1 Answers

var blob = client.GetContainerReference(containerName).GetBlockBlobReference(blobFileName);  if (blob.Exists())  //do your stuff 
like image 159
sam Avatar answered Sep 22 '22 20:09

sam