Migrate non-destructive calls of File::CopyDir() to File::Copy().

This commit is contained in:
Admiral H. Curtiss
2023-02-22 02:23:21 +01:00
parent 884917a6d5
commit 1ed0e014cd
2 changed files with 8 additions and 5 deletions

View File

@ -248,7 +248,7 @@ void AutoUpdateChecker::TriggerUpdate(const AutoUpdateChecker::NewVersionInforma
#ifdef __APPLE__
// Copy the updater so it can update itself if needed.
const std::string reloc_updater_path = UpdaterPath(true);
if (!File::CopyDir(UpdaterPath(), reloc_updater_path))
if (!File::Copy(UpdaterPath(), reloc_updater_path))
{
CriticalAlertFmtT("Unable to create updater copy.");
return;