I’m using azure blobstorage in c#, is there a way, a method to get the list of files from a given specific folder?
like get all file names inside this url https://prueba.blob.core.windows.net/simem/UAL/Dato%20de%20archivo%20prueba%20No1/2022/1/16
i know that using container.GetBlobs() i would get all files but not from a specific folder
2
Answers
Just use
You can get file names from a specific folder using
BlobServiceClient
andGetBlobs
and by using below code in C# Console App and I followed Microsoft-Document and @Cindy Pau‘s answer:In Storage Account of pool Container:
Now inside test Folder:
Output:
Press Enter after every line to get File names one by one.