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();
If you're using Windows Azure Storage 4.3.0, try this code.
List<string> blobNames = list.OfType<CloudBlockBlob>().Select(b => b.Name).ToList();
1.4m articles
1.4m replys
5 comments
57.0k users