Merge pull request #8772 from JosJuice/create-backup-dir

Core: Call CreateFullPath before using Backup directory
This commit is contained in:
JMC47 2020-04-28 12:35:05 -04:00 committed by GitHub
commit 165c2e3017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ static bool CopyBackupFile(const std::string& path_from, const std::string& path
if (!File::Exists(path_from))
return false;
File::CreateFullPath(path_to);
return File::Copy(path_from, path_to);
}