Tried using the ListBlobsSegmentedAsync method ,
but this returns only the blobs from the main parent directory level ..
But I need the entire list of blobs at one go from all the n levels of subdirectories.
BlobContinuationToken continuationToken = null;
bool useFlatBlobListing = true;
BlobListingDetails blobListingDetails = BlobListingDetails.None;
int maxBlobsPerRequest = 500;
var blobOptions = new BlobRequestOptions (true );
do
{
var listingResult = await cbDir.ListBlobsSegmentedAsync(useFlatBlobListing, blobListingDetails, maxBlobsPerRequest, continuationToken, null, null);
continuationToken = listingResult.ContinuationToken;
srcBlobList.AddRange(listingResult.Results);
} while (continuationToken != null);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…