Loading app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java +4 −0 Original line number Diff line number Diff line Loading @@ -148,7 +148,11 @@ public class DownloadFileOperation extends RemoteOperation { * @return true if success, false otherwise */ private boolean moveFileToRealLocation(File tmpFile, File targetFile) { final File targetDir = targetFile.getParentFile(); if (targetDir == null) return false; try { if (!targetDir.exists()) targetDir.mkdirs(); final Path copyResult = Files.copy(tmpFile.toPath(), targetFile.toPath(), REPLACE_EXISTING); if (copyResult.toFile().length() == tmpFile.length()) { tmpFile.delete(); Loading Loading
app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java +4 −0 Original line number Diff line number Diff line Loading @@ -148,7 +148,11 @@ public class DownloadFileOperation extends RemoteOperation { * @return true if success, false otherwise */ private boolean moveFileToRealLocation(File tmpFile, File targetFile) { final File targetDir = targetFile.getParentFile(); if (targetDir == null) return false; try { if (!targetDir.exists()) targetDir.mkdirs(); final Path copyResult = Files.copy(tmpFile.toPath(), targetFile.toPath(), REPLACE_EXISTING); if (copyResult.toFile().length() == tmpFile.length()) { tmpFile.delete(); Loading