I want all the names from the Azure Blob files in a container (for a certain purpose). I found some similar questions, even one on stackoverflow.com (getting list of names of Azure blob files in a container?). But all those answers are using the ListBlobs()-method first. That is what I want to prevent, beacause with 24,000 files, it takes about 10 minutes before all the files are stored in a list and the name is received from every file. Method I use now in C#:
var container = GetOrCreateBlobContainer(containerName);
var blobs = container.ListBlobs(useFlatBlobListing: true);
var blobNames = blobs.OfType<CloudBlockBlob>().Select(b => b.Name).ToList();
return blobNames;
What I want: Get all names directly from the storage without using container.ListBlobs() first.
Is this possible??
What I want: Get all names directly from the storage without using container.ListBlobs() first.
Is this possible??
No, it is not possible. You will need to call ListBlobs
to get a list of all blobs in a container.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With