1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Added create folder operation support for specific space

This commit is contained in:
Abel García de Prada 2023-01-17 19:07:42 +01:00 committed by Juan Carlos Garrote
parent cb73d537e4
commit 2c18e7b679
3 changed files with 8 additions and 4 deletions

View File

@ -46,7 +46,8 @@ import java.util.concurrent.TimeUnit
class CreateRemoteFolderOperation(
val remotePath: String,
private val createFullPath: Boolean,
private val isChunksFolder: Boolean = false
private val isChunksFolder: Boolean = false,
val spaceWebDavUrl: String? = null,
) : RemoteOperation<Unit>() {
override fun run(client: OwnCloudClient): RemoteOperationResult<Unit> {

View File

@ -43,7 +43,8 @@ interface FileService : Service {
fun createFolder(
remotePath: String,
createFullPath: Boolean,
isChunkFolder: Boolean = false
isChunkFolder: Boolean = false,
spaceWebDavUrl: String? = null,
): RemoteOperationResult<Unit>
fun downloadFile(

View File

@ -64,12 +64,14 @@ class OCFileService(override val client: OwnCloudClient) : FileService {
override fun createFolder(
remotePath: String,
createFullPath: Boolean,
isChunkFolder: Boolean
isChunkFolder: Boolean,
spaceWebDavUrl: String?,
): RemoteOperationResult<Unit> =
CreateRemoteFolderOperation(
remotePath = remotePath,
createFullPath = createFullPath,
isChunksFolder = isChunkFolder
isChunksFolder = isChunkFolder,
spaceWebDavUrl = spaceWebDavUrl,
).execute(client)
override fun downloadFile(