mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 08:26:10 +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:
parent
b15fb19399
commit
5ac5c80809
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user