am 37c8f8b5: am 20f07e33: Merge "Unlink an old file before moving the new file over it" into jb-mr1-dev
* commit '37c8f8b510a13b14a5e043a0735c91609917843d': Unlink an old file before moving the new file over itmain
commit
933e7c3770
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue