From b4625d017c5685e5e14e1e482fe513ac3c4e145d Mon Sep 17 00:00:00 2001 From: Manuel Plazas Palacio Date: Thu, 24 Aug 2023 12:28:23 +0200 Subject: [PATCH] Solving bugs when getting file existence. --- .../android/lib/resources/files/RenameRemoteFileOperation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt index 9a0a4b30..71329a97 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt @@ -106,7 +106,7 @@ class RenameRemoteFileOperation( * @return 'True' if the target path is already used by an existing file. */ private fun targetPathIsUsed(client: OwnCloudClient): Boolean { - val checkPathExistenceRemoteOperation = CheckPathExistenceRemoteOperation(newRemotePath, false) + val checkPathExistenceRemoteOperation = CheckPathExistenceRemoteOperation(newRemotePath, true) val exists = checkPathExistenceRemoteOperation.execute(client) return exists.isSuccess }