mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-09 08:56:22 +00:00
Create parent folder when downloading a file if possible
This commit is contained in:
parent
2c3f864d66
commit
9bea63ebb3
@ -66,7 +66,7 @@ class DownloadRemoteFileOperation(
|
||||
|
||||
// perform the download
|
||||
try {
|
||||
tmpFile.mkdirs()
|
||||
tmpFile.parentFile?.mkdirs()
|
||||
result = downloadFile(client, tmpFile)
|
||||
Timber.i("Download of $remotePath to $tmpPath: ${result.logMessage}")
|
||||
} catch (e: Exception) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user