From 3f0cbff16f9e1448039246ee75334e96bef889a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cgifi-siby=E2=80=9C?= <“gifi.s@ibm.com“> Date: Thu, 9 Jan 2025 21:35:19 -0800 Subject: [PATCH] Used HierarchyPager instead of FlatPager Signed-off-by: gifi-siby --- internal/storage/azure_object_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/storage/azure_object_storage.go b/internal/storage/azure_object_storage.go index 66890b3e203b4..80bd914e97ab3 100644 --- a/internal/storage/azure_object_storage.go +++ b/internal/storage/azure_object_storage.go @@ -192,7 +192,7 @@ func (AzureObjectStorage *AzureObjectStorage) StatObject(ctx context.Context, bu func (AzureObjectStorage *AzureObjectStorage) WalkWithObjects(ctx context.Context, bucketName string, prefix string, recursive bool, walkFunc ChunkObjectWalkFunc) error { if recursive { - pager := AzureObjectStorage.Client.NewContainerClient(bucketName).NewListBlobsFlatPager(&azblob.ListBlobsFlatOptions{ + pager := AzureObjectStorage.Client.NewContainerClient(bucketName).NewListBlobsHierarchyPager("", &container.ListBlobsHierarchyOptions{ Prefix: &prefix, }) if pager.More() {