updates
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-09-28 15:03:45 -05:00
parent 26fffdd3e8
commit 9aecec2d96

View File

@ -384,6 +384,7 @@ auto file_manager::handle_file_rename(const std::string &from_api_path,
std::string source_path{}; std::string source_path{};
auto file_iter = open_file_lookup_.find(from_api_path); auto file_iter = open_file_lookup_.find(from_api_path);
if (file_iter != open_file_lookup_.end()) { if (file_iter != open_file_lookup_.end()) {
should_upload = file_iter->second->is_modified();
source_path = file_iter->second->get_source_path(); 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); remove_upload(from_api_path);
}
auto ret = provider_.rename_file(from_api_path, to_api_path); auto ret = provider_.rename_file(from_api_path, to_api_path);
if (ret != api_error::success) { if (ret != api_error::success) {