This commit is contained in:
parent
7bf69ec350
commit
26fffdd3e8
@ -419,15 +419,13 @@ auto file_manager::handle_file_rename(const std::string &from_api_path,
|
|||||||
|
|
||||||
swap_renamed_items(from_api_path, to_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) {
|
if (should_upload) {
|
||||||
queue_upload(to_api_path, source_path, false);
|
queue_upload(to_api_path, source_path, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return source_path.empty()
|
||||||
|
? api_error::success
|
||||||
|
: provider_.set_item_meta(to_api_path, META_SOURCE, source_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto file_manager::has_no_open_file_handles() const -> bool {
|
auto file_manager::has_no_open_file_handles() const -> bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user