mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-25 22:27:09 +00:00
fixes in download file and upgrade ktor version
This commit is contained in:
1 parent
47b0f6d2d8
commit
580d757be2
2 files changed
+3
-3
No files matched your search
@@ -10,8 +10,8 @@ import java.io.File
|
||||
|
||||
fun PartData.FileItem.download(target: File) {
|
||||
provider().use { input ->
|
||||
target.outputStream().use {
|
||||
input.copyTo(it.asOutput())
|
||||
target.outputStream().asOutput().use {
|
||||
input.copyTo(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user