refactor
This commit is contained in:
parent
281eedb71e
commit
17b98ca99d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user