refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-01-01 01:19:59 -06:00
parent ecb9783f4e
commit 4fef036f10
2 changed files with 10 additions and 14 deletions

View File

@ -600,11 +600,11 @@ auto s3_provider::get_file_list(api_file_list &list,
for (const auto &node : node_list) {
auto object_name =
std::string{node.node().select_node("Key").node().text().as_string()};
auto api_path{object_name};
if (utils::string::ends_with(api_path, "/")) {
if (utils::string::ends_with(object_name, "/")) {
continue;
}
auto api_path{object_name};
auto is_encrypted = not get_s3_config().encryption_token.empty();
if (is_encrypted) {
auto res = decrypt_object_name(api_path);