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

Commit 5ac5c808 authored by David A. Velasco's avatar David A. Velasco
Browse files

Return FILE_NOT_FOUND error only if the file is not found in the server, not...

Return FILE_NOT_FOUND error only if the file is not found in the server, not in case of any other error checking its existence
parent b15fb193
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ public class CopyRemoteFileOperation extends RemoteOperation {
            return new RemoteOperationResult(ResultCode.INVALID_COPY_INTO_DESCENDANT);
        }

        if (!new ExistenceCheckRemoteOperation(mSrcRemotePath, Boolean.FALSE).run(getClient()).isSuccess()) {
        if (new ExistenceCheckRemoteOperation(mSrcRemotePath, true).run(getClient()).isSuccess()) {
            return new RemoteOperationResult(ResultCode.FILE_NOT_FOUND);
        }