Skip to content

Commit

Permalink
Removed startsWith condition in CopyRemoteFileOperation.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Jan 23, 2024
1 parent 7166a71 commit 9041c58
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>
Expand Down

0 comments on commit 9041c58

Please sign in to comment.