diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/DownloadRemoteFileOperation.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/DownloadRemoteFileOperation.kt index c00ea76f..fddeb692 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/DownloadRemoteFileOperation.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/DownloadRemoteFileOperation.kt @@ -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) {