From 9041c58ba29078ad696d189a2b5d14d9b74cd29d Mon Sep 17 00:00:00 2001 From: Aitorbp Date: Tue, 23 Jan 2024 10:09:18 +0000 Subject: [PATCH] Removed startsWith condition in CopyRemoteFileOperation.kt --- .../android/lib/resources/files/CopyRemoteFileOperation.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/CopyRemoteFileOperation.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/CopyRemoteFileOperation.kt index ef653f0cb6f..a85d3a5a747 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/CopyRemoteFileOperation.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/CopyRemoteFileOperation.kt @@ -68,9 +68,6 @@ class CopyRemoteFileOperation( // nothing to do! return RemoteOperationResult(ResultCode.OK) } - if (targetRemotePath.startsWith(sourceRemotePath) && sourceSpaceWebDavUrl == targetSpaceWebDavUrl) { - return RemoteOperationResult(ResultCode.INVALID_COPY_INTO_DESCENDANT) - } /// perform remote operation var result: RemoteOperationResult