Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20f07e33 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android (Google) Code Review
Browse files

Merge "Unlink an old file before moving the new file over it" into jb-mr1-dev

parents 28989acb c1572648
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");
                }