Skip to content

Commit

Permalink
Used HierarchyPager instead of FlatPager
Browse files Browse the repository at this point in the history
Signed-off-by: gifi-siby <[email protected]>
  • Loading branch information
“gifi-siby“ committed Jan 10, 2025
1 parent 4355b48 commit 3f0cbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/azure_object_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3f0cbff

Please sign in to comment.