From e9160ea86011f4f5599a878b8cfb1b5018979b3a Mon Sep 17 00:00:00 2001 From: Anton Popov Date: Wed, 20 Nov 2024 13:00:28 +0000 Subject: [PATCH] fix ListObjects in azure --- .../ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Disks/ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp b/src/Disks/ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp index 942eb18e8ce..c1db590f1e8 100644 --- a/src/Disks/ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp +++ b/src/Disks/ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp @@ -108,7 +108,7 @@ ListBlobsPagedResponse ContainerClientWrapper::ListBlobs(const ListBlobsOptions new_options.Prefix = blob_prefix / options.Prefix.ValueOr(""); auto response = client.ListBlobs(new_options); - auto blob_prefix_str = blob_prefix.string() + "/"; + auto blob_prefix_str = blob_prefix.empty() ? "" : blob_prefix.string() + "/"; for (auto & blob : response.Blobs) {