This commit is contained in:
Wojtek Figat
2021-10-21 18:57:26 +02:00
parent 8926fa57c1
commit 8eefe76bda
2 changed files with 2 additions and 3 deletions

View File

@@ -338,7 +338,8 @@ bool LinuxFileSystem::MoveFile(const StringView& dst, const StringView& src, boo
{
if (errno == EXDEV)
{
if(!CopyFile(dst, src)) {
if (!CopyFile(dst, src))
{
unlink(StringAsANSI<>(*src, src.Length()).Get());
return false;
}