Avoid blocking copy in moveFile.
This commit is contained in:
parent
ea4917d4d0
commit
c899798be7
|
@ -191,7 +191,7 @@ void moveFile(string from, string to, bool copy_fallback = false)
|
||||||
try {
|
try {
|
||||||
std.file.rename(from, to);
|
std.file.rename(from, to);
|
||||||
} catch (FileException e) {
|
} catch (FileException e) {
|
||||||
std.file.copy(from, to);
|
copyFile(from, to);
|
||||||
std.file.remove(from);
|
std.file.remove(from);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue