mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Solving bugs when getting file existence.
This commit is contained in:
parent
2c698cc2a4
commit
b4625d017c
@ -106,7 +106,7 @@ class RenameRemoteFileOperation(
|
|||||||
* @return 'True' if the target path is already used by an existing file.
|
* @return 'True' if the target path is already used by an existing file.
|
||||||
*/
|
*/
|
||||||
private fun targetPathIsUsed(client: OwnCloudClient): Boolean {
|
private fun targetPathIsUsed(client: OwnCloudClient): Boolean {
|
||||||
val checkPathExistenceRemoteOperation = CheckPathExistenceRemoteOperation(newRemotePath, false)
|
val checkPathExistenceRemoteOperation = CheckPathExistenceRemoteOperation(newRemotePath, true)
|
||||||
val exists = checkPathExistenceRemoteOperation.execute(client)
|
val exists = checkPathExistenceRemoteOperation.execute(client)
|
||||||
return exists.isSuccess
|
return exists.isSuccess
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user