mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 22:14:42 +00:00
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
@ -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…
x
Reference in New Issue
Block a user