This commit is contained in:
parent
26fffdd3e8
commit
9aecec2d96
@ -384,6 +384,7 @@ auto file_manager::handle_file_rename(const std::string &from_api_path,
|
||||
std::string source_path{};
|
||||
auto file_iter = open_file_lookup_.find(from_api_path);
|
||||
if (file_iter != open_file_lookup_.end()) {
|
||||
should_upload = file_iter->second->is_modified();
|
||||
source_path = file_iter->second->get_source_path();
|
||||
}
|
||||
|
||||
@ -407,9 +408,7 @@ auto file_manager::handle_file_rename(const std::string &from_api_path,
|
||||
}
|
||||
}
|
||||
|
||||
if (should_upload) {
|
||||
remove_upload(from_api_path);
|
||||
}
|
||||
|
||||
auto ret = provider_.rename_file(from_api_path, to_api_path);
|
||||
if (ret != api_error::success) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user