Skip to content
Snippets Groups Projects
Commit feac8a91 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android Git Automerger
Browse files

am 933e7c37: am 37c8f8b5: am 20f07e33: Merge "Unlink an old file before moving...

am 933e7c37: am 37c8f8b5: am 20f07e33: Merge "Unlink an old file before moving the new file over it" into jb-mr1-dev

* commit '933e7c37':
  Unlink an old file before moving the new file over it
parents cc7c1592 933e7c37
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