1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Create parent folder when downloading a file if possible

This commit is contained in:
agarcia 2020-09-03 11:18:53 +02:00 committed by Abel García de Prada
parent 72df6ddf82
commit ce8ac204e1

View File

@ -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) {