booster / com.didiglobal.booster.transform.util / java.io.File

Extensions for java.io.File

collect

Collecting information from file with collector, the supported file types are as follows:

fun <R> File.collect(collector: Collector<R>): List<R>

transform

Transform this file or directory to the output by the specified transformer

fun File.transform(output: File, transformer: (ByteArray) -> ByteArray = { it -> it }): Unit