Avoid blocking copy in moveFile.

This commit is contained in:
Sönke Ludwig 2019-01-14 00:31:38 +01:00
parent ea4917d4d0
commit c899798be7

View file

@ -191,7 +191,7 @@ void moveFile(string from, string to, bool copy_fallback = false)
try {
std.file.rename(from, to);
} catch (FileException e) {
std.file.copy(from, to);
copyFile(from, to);
std.file.remove(from);
}
}