Skip to content

Commit

Permalink
Use rename instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed May 17, 2024
1 parent 8cf3c61 commit 1775349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/lpnamer/input_reader/LpFilesExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void LpFilesExtractor::produceAreatxtFile(
[[fallthrough]];
case SimulationInputMode::FILE:
try {
std::filesystem::copy(vect_area_files[0],
std::filesystem::rename(vect_area_files[0],
this->xpansion_output_dir_ / "area.txt");
} catch (const std::filesystem::filesystem_error& e) {
auto log_location = LOGLOCATION;
Expand Down Expand Up @@ -178,7 +178,7 @@ void LpFilesExtractor::produceIntercotxtFile(
[[fallthrough]];
case SimulationInputMode::FILE:
try {
std::filesystem::copy(vect_interco_files[0],
std::filesystem::rename(vect_interco_files[0],
this->xpansion_output_dir_ / "interco.txt");
} catch (const std::filesystem::filesystem_error& e) {
auto log_location = LOGLOCATION;
Expand Down

0 comments on commit 1775349

Please sign in to comment.