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:
parent
cb73d537e4
commit
2c18e7b679
@ -46,7 +46,8 @@ import java.util.concurrent.TimeUnit
|
|||||||
class CreateRemoteFolderOperation(
|
class CreateRemoteFolderOperation(
|
||||||
val remotePath: String,
|
val remotePath: String,
|
||||||
private val createFullPath: Boolean,
|
private val createFullPath: Boolean,
|
||||||
private val isChunksFolder: Boolean = false
|
private val isChunksFolder: Boolean = false,
|
||||||
|
val spaceWebDavUrl: String? = null,
|
||||||
) : RemoteOperation<Unit>() {
|
) : RemoteOperation<Unit>() {
|
||||||
|
|
||||||
override fun run(client: OwnCloudClient): RemoteOperationResult<Unit> {
|
override fun run(client: OwnCloudClient): RemoteOperationResult<Unit> {
|
||||||
|
@ -43,7 +43,8 @@ interface FileService : Service {
|
|||||||
fun createFolder(
|
fun createFolder(
|
||||||
remotePath: String,
|
remotePath: String,
|
||||||
createFullPath: Boolean,
|
createFullPath: Boolean,
|
||||||
isChunkFolder: Boolean = false
|
isChunkFolder: Boolean = false,
|
||||||
|
spaceWebDavUrl: String? = null,
|
||||||
): RemoteOperationResult<Unit>
|
): RemoteOperationResult<Unit>
|
||||||
|
|
||||||
fun downloadFile(
|
fun downloadFile(
|
||||||
|
@ -64,12 +64,14 @@ class OCFileService(override val client: OwnCloudClient) : FileService {
|
|||||||
override fun createFolder(
|
override fun createFolder(
|
||||||
remotePath: String,
|
remotePath: String,
|
||||||
createFullPath: Boolean,
|
createFullPath: Boolean,
|
||||||
isChunkFolder: Boolean
|
isChunkFolder: Boolean,
|
||||||
|
spaceWebDavUrl: String?,
|
||||||
): RemoteOperationResult<Unit> =
|
): RemoteOperationResult<Unit> =
|
||||||
CreateRemoteFolderOperation(
|
CreateRemoteFolderOperation(
|
||||||
remotePath = remotePath,
|
remotePath = remotePath,
|
||||||
createFullPath = createFullPath,
|
createFullPath = createFullPath,
|
||||||
isChunksFolder = isChunkFolder
|
isChunksFolder = isChunkFolder,
|
||||||
|
spaceWebDavUrl = spaceWebDavUrl,
|
||||||
).execute(client)
|
).execute(client)
|
||||||
|
|
||||||
override fun downloadFile(
|
override fun downloadFile(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user