Skip to content

Commit

Permalink
fixed mkdirs() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bigahega committed Jan 13, 2020
1 parent f04918f commit 5ccc428
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object SimpleDownloader {
if (!isActive) {
return@launch
}
File(targetFilePath).mkdirs()
File(targetFilePath).parentFile?.mkdirs()
val body = execute.body ?: return@launch
val bufferedSource = body.source()
val bufferedSink = File(targetFilePath).sink().buffer()
Expand Down

0 comments on commit 5ccc428

Please sign in to comment.