forked from teamnwah/openmw-tes3coop
Fixed issue with copy_file
from: https://forum.openmw.org/viewtopic.php?f=20&t=1718&hilit=0.26&start=50#p18705
This commit is contained in:
parent
5a792b10b9
commit
2b50e34566
1 changed files with 6 additions and 1 deletions
|
@ -216,7 +216,12 @@ namespace
|
|||
else
|
||||
{
|
||||
if(copy)
|
||||
bfs::copy_file(dir->path(), to / dir->path().filename());
|
||||
{
|
||||
bfs::path dest = to / dir->path().filename();
|
||||
if(bfs::exists(dest))
|
||||
bfs::remove_all(dest);
|
||||
bfs::copy_file(dir->path(), dest);
|
||||
}
|
||||
else
|
||||
bfs::rename(dir->path(), to / dir->path().filename());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue