refactor
Some checks failed
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2023-11-11 18:31:49 -06:00
parent 281eedb71e
commit 17b98ca99d

View File

@ -263,7 +263,6 @@ auto s3_provider::create_file(const std::string &api_path, api_meta_map &meta)
stop_type stop_requested{false};
try {
meta[META_DIRECTORY] = utils::string::from_bool(false);
if (not config_.get_s3_config().encryption_token.empty()) {
std::string encrypted_file_path;
res = get_item_meta(utils::path::get_parent_api_path(api_path), META_KEY,
@ -284,6 +283,7 @@ auto s3_provider::create_file(const std::string &api_path, api_meta_map &meta)
{utils::to_hex_string(result)}));
}
meta[META_DIRECTORY] = utils::string::from_bool(false);
res = set_item_meta(api_path, meta);
if (res != api_error::success) {
utils::error::raise_api_path_error(__FUNCTION__, api_path, res,