mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-02 13:11:13 +00:00
fixes in download file and upgrade ktor version
This commit is contained in:
@@ -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