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(
|
||||
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> {
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user