diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/GetBaseUrlRemoteOperation.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/GetBaseUrlRemoteOperation.kt index 65a8faf90e3..7ffd97e80a0 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/GetBaseUrlRemoteOperation.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/GetBaseUrlRemoteOperation.kt @@ -51,7 +51,7 @@ class GetBaseUrlRemoteOperation : RemoteOperation() { val status = client.executeHttpMethod(propFindMethod) - if (isSuccess(status)) { + if (isSuccess(status) || status == HttpConstants.HTTP_NOT_FOUND) { RemoteOperationResult(RemoteOperationResult.ResultCode.OK).apply { data = propFindMethod.getFinalUrl().toString() }