I need to list names of Azure Blob file names. Currently I m able to list all files with URL but I just need list of names. I want to avoid parsing names. Can you please see my below code and guide:
CloudStorageAccount backupStorageAccount = CloudStorageAccount.Parse(blobConectionString);
var backupBlobClient = backupStorageAccount.CreateCloudBlobClient();
var backupContainer = backupBlobClient.GetContainerReference(container);
var list = backupContainer.ListBlobs();
This works with WindowsAzure.Storage 9.3.3.
If you're using Windows Azure Storage 4.3.0, try this code.
Here is one more way to get this done:
Source: How to load list of Azure blob files recursively?
We can get some additional info like Size, Modified date and Name.
Also you can download a specific file by Name.
You can access the
BlobProperties
to get the name:Full answer with details.