How to check if Azure Blob file Exists or Not

Hope picture Hope · Jun 14, 2012 · Viewed 37.9k times · Source

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.

Answer

sam picture sam · Sep 20, 2013
var blob = client.GetContainerReference(containerName).GetBlockBlobReference(blobFileName);

if (blob.Exists())
 //do your stuff