Skip to content
Snippets Groups Projects
Commit c1572648 authored by Jean Chalard's avatar Jean Chalard
Browse files

Unlink an old file before moving the new file over it

This is unlikely to be relevant to this bug, but just in case.

Bug: 7274972
Change-Id: I56b31b377af16cc2c15ceb90a19792bed3aab367
parent 01d9b1f1
No related branches found
No related tags found
No related merge requests found
......@@ -200,6 +200,7 @@ public final class BinaryDictionaryFileDumper {
outputStream.flush();
outputStream.close();
final File finalFile = new File(finalFileName);
finalFile.delete();
if (!outputFile.renameTo(finalFile)) {
throw new IOException("Can't move the file to its final name");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment