[bug] Rename file is broken for files that are existing #19
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
Scott E. Graves 2024-09-28 13:19:35 -05:00
parent a58fcc7f14
commit 49f884bb68

View File

@ -419,13 +419,15 @@ auto file_manager::handle_file_rename(const std::string &from_api_path,
swap_renamed_items(from_api_path, to_api_path);
ret = source_path.empty()
? api_error::success
: provider_.set_item_meta(to_api_path, META_SOURCE, source_path);
if (should_upload) {
queue_upload(to_api_path, source_path, false);
}
return source_path.empty()
? api_error::success
: provider_.set_item_meta(to_api_path, META_SOURCE, source_path);
return ret;
}
auto file_manager::has_no_open_file_handles() const -> bool {