blob: bfbc009160427789890386d5e655458b7c1fed7b (
plain)
1
2
3
4
5
6
7
8
9
|
package ca.allanwang.kau.utils
import java.io.File
import java.io.InputStream
/**
* Created by Allan Wang on 2017-08-04.
*/
fun File.copyFromInputStream(inputStream: InputStream) = inputStream.use { input -> outputStream().use { output -> input.copyTo(output) } }
|