This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import java.io.BufferedInputStream
36
36
import java.io.File
37
37
import java.io.FileOutputStream
38
38
import java.net.URL
39
- import java.util.HashSet
40
39
import java.util.concurrent.atomic.AtomicBoolean
41
40
42
41
/* *
@@ -47,7 +46,8 @@ import java.util.concurrent.atomic.AtomicBoolean
47
46
*/
48
47
class DownloadRemoteFileOperation (
49
48
private val remotePath : String ,
50
- localFolderPath : String
49
+ localFolderPath : String ,
50
+ private val spaceWebDavUrl : String? = null ,
51
51
) : RemoteOperation<Unit>() {
52
52
53
53
private val cancellationRequested = AtomicBoolean (false )
@@ -84,7 +84,8 @@ class DownloadRemoteFileOperation(
84
84
var bis: BufferedInputStream ? = null
85
85
var savedFile = false
86
86
87
- val getMethod = GetMethod (URL (client.userFilesWebDavUri.toString() + WebdavUtils .encodePath(remotePath)))
87
+ val webDavUri = spaceWebDavUrl ? : client.userFilesWebDavUri.toString()
88
+ val getMethod = GetMethod (URL (webDavUri + WebdavUtils .encodePath(remotePath)))
88
89
89
90
try {
90
91
val status = client.executeHttpMethod(getMethod)
You can’t perform that action at this time.
0 commit comments