mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-11 08:22:56 +00:00
Create parent folder when downloading a file if possible
This commit is contained in:
committed by
Juan Carlos Garrote
parent
cd63ee8f21
commit
be20267fea
+1
-1
@@ -66,7 +66,7 @@ class DownloadRemoteFileOperation(
|
|||||||
|
|
||||||
// perform the download
|
// perform the download
|
||||||
try {
|
try {
|
||||||
tmpFile.mkdirs()
|
tmpFile.parentFile?.mkdirs()
|
||||||
result = downloadFile(client, tmpFile)
|
result = downloadFile(client, tmpFile)
|
||||||
Timber.i("Download of $remotePath to $tmpPath: ${result.logMessage}")
|
Timber.i("Download of $remotePath to $tmpPath: ${result.logMessage}")
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user