[bug] Rename file is broken for files that are existing #19
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...
This commit is contained in:
parent
a58fcc7f14
commit
49f884bb68
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user