Skip to content

Commit

Permalink
use exception-throwing version of std::rename to fix not resorting to…
Browse files Browse the repository at this point in the history
… regular copy & delete on failure
  • Loading branch information
nam20485 committed Feb 29, 2024
1 parent f9ce8f6 commit 75ce7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/fastcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Utils

try
{
rename(source, dest, ec);
rename(source, dest);
}
catch (filesystem_error& fe)
{
Expand Down

0 comments on commit 75ce7f3

Please sign in to comment.