mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-22 22:03:00 +00:00
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
This commit is contained in:
@@ -105,7 +105,7 @@ public class CopyRemoteFileOperation extends RemoteOperation {
|
|||||||
return new RemoteOperationResult(ResultCode.INVALID_COPY_INTO_DESCENDANT);
|
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);
|
return new RemoteOperationResult(ResultCode.FILE_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user