mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 11:02:28 +02:00
Merge pull request #5980 from JosJuice/copydir-destructive
Fix regression in File::CopyDir
This commit is contained in:
commit
a861c5772d
@ -564,11 +564,11 @@ void CopyDir(const std::string& source_path, const std::string& dest_path, bool
|
||||
File::CreateFullPath(dest + DIR_SEP);
|
||||
CopyDir(source, dest, destructive);
|
||||
}
|
||||
else if (!Exists(dest) && !destructive)
|
||||
else if (!destructive && !Exists(dest))
|
||||
{
|
||||
Copy(source, dest);
|
||||
}
|
||||
else
|
||||
else if (destructive)
|
||||
{
|
||||
Rename(source, dest);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user