diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-04-26 11:00:03 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-04-26 11:00:03 +0200 |
| commit | fb268bb04f868ec2f844cbf60c0bbad0d4bbd3f8 (patch) | |
| tree | ff845600ab741c5c623de779ea48fdbafc49f6b5 /Source/Core/Updater | |
| parent | c51c044142fd0c91839ddc242d9da6efcbb4a526 (diff) | |
Updater: Use copy instead of move
Diffstat (limited to 'Source/Core/Updater')
| -rw-r--r-- | Source/Core/Updater/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Updater/Main.cpp b/Source/Core/Updater/Main.cpp index d13019b8f6..1ee8b21a4a 100644 --- a/Source/Core/Updater/Main.cpp +++ b/Source/Core/Updater/Main.cpp @@ -590,7 +590,7 @@ bool UpdateFiles(const std::vector<TodoList::UpdateOp>& to_update, std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size()); fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(), content_filename.c_str()); - if (!File::Rename(temp_path + DIR_SEP + content_filename, path)) + if (!File::Copy(temp_path + DIR_SEP + content_filename, path)) { fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str()); return false; |
