Here is my code I'm using initialized data service client to get the storage blob containers folders and files.
However, while iterating through paginated responses I'm not getting data in a sorted format. I want all the folders/directories to appear on the first pages and then files at the end.
It would be helpful if someone has an idea of how this can be done.
Thanks in advance.
Fetching Files and folders from Blob Storage in Pagination
Create a storage account
Create a file share account
Create a directory / folder in fileshare
Use the Connection string of the storage account, fileshare name and folder name in the below code
Code Execution
The below is the list of sorted files in the pagination Page1
Page2