Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 2c18e7b

Browse files
abelgardepJuancaG05
authored andcommitted
Added create folder operation support for specific space
1 parent cb73d53 commit 2c18e7b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/CreateRemoteFolderOperation.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ import java.util.concurrent.TimeUnit
4646
class CreateRemoteFolderOperation(
4747
val remotePath: String,
4848
private val createFullPath: Boolean,
49-
private val isChunksFolder: Boolean = false
49+
private val isChunksFolder: Boolean = false,
50+
val spaceWebDavUrl: String? = null,
5051
) : RemoteOperation<Unit>() {
5152

5253
override fun run(client: OwnCloudClient): RemoteOperationResult<Unit> {

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/services/FileService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ interface FileService : Service {
4343
fun createFolder(
4444
remotePath: String,
4545
createFullPath: Boolean,
46-
isChunkFolder: Boolean = false
46+
isChunkFolder: Boolean = false,
47+
spaceWebDavUrl: String? = null,
4748
): RemoteOperationResult<Unit>
4849

4950
fun downloadFile(

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/services/implementation/OCFileService.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ class OCFileService(override val client: OwnCloudClient) : FileService {
6464
override fun createFolder(
6565
remotePath: String,
6666
createFullPath: Boolean,
67-
isChunkFolder: Boolean
67+
isChunkFolder: Boolean,
68+
spaceWebDavUrl: String?,
6869
): RemoteOperationResult<Unit> =
6970
CreateRemoteFolderOperation(
7071
remotePath = remotePath,
7172
createFullPath = createFullPath,
72-
isChunksFolder = isChunkFolder
73+
isChunksFolder = isChunkFolder,
74+
spaceWebDavUrl = spaceWebDavUrl,
7375
).execute(client)
7476

7577
override fun downloadFile(

0 commit comments

Comments
 (0)