X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/f331120a147b95e7a27fb765de2e210d4af892ca..3d3046dc264792475c72987afc25beae23da4dc6:/src/com/owncloud/android/operations/DownloadFileOperation.java diff --git a/src/com/owncloud/android/operations/DownloadFileOperation.java b/src/com/owncloud/android/operations/DownloadFileOperation.java index 9f2bed72..8ac824a4 100644 --- a/src/com/owncloud/android/operations/DownloadFileOperation.java +++ b/src/com/owncloud/android/operations/DownloadFileOperation.java @@ -1,4 +1,7 @@ /* ownCloud Android client application + * + * @author David A. Velasco + * @author masensio * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify @@ -38,9 +41,6 @@ import android.webkit.MimeTypeMap; /** * Remote mDownloadOperation performing the download of a file to an ownCloud server - * - * @author David A. Velasco - * @author masensio */ public class DownloadFileOperation extends RemoteOperation { @@ -150,13 +150,11 @@ public class DownloadFileOperation extends RemoteOperation { newFile = new File(getSavePath()); newFile.getParentFile().mkdirs(); moved = tmpFile.renameTo(newFile); - if (!moved) result = new RemoteOperationResult(RemoteOperationResult.ResultCode.LOCAL_STORAGE_NOT_MOVED); } Log_OC.i(TAG, "Download of " + mFile.getRemotePath() + " to " + getSavePath() + ": " + result.getLogMessage()); - return result; } @@ -179,5 +177,4 @@ public class DownloadFileOperation extends RemoteOperation { mDataTransferListeners.remove(listener); } } - }