I am using Azure Blob Storage to store some of my files away. I have them categorized in different folders.
So far I can get a list of all blobs in the container using this:
public async Task<List<Uri>> GetFullBlobsAsync()
{
var blobList = await Container.ListBlobsSegmentedAsync(string.Empty, true, BlobListingDetails.None, int.MaxValue, null, null, null);
return (from blob in blobList.Results where !blob.Uri.Segments.LastOrDefault().EndsWith("-thumb") select blob.Uri).ToList();
}
But how can I only get the folders, and then maybe the files in that specific subdirectory?
This is on ASP.NET Core btw
EDIT:
Container structure looks like this:
Container
|
|
____Folder 1
| ____File 1
| ____File 2
|
|
____Folder 2
____File 3
____File 4
____File 5
____File 6