fix ListObjects in azure

This commit is contained in:
Anton Popov 2024-11-20 13:00:28 +00:00
parent ed6d6056f2
commit e9160ea860

View File

@ -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)
{