booster / com.didiglobal.booster.kotlinx / java.io.File

Extensions for java.io.File

file

fun File.file(vararg path: String): File

head

Return the first line of file

fun File.head(): String?

search

fun File.search(filter: (File) -> Boolean = { true }): Collection<File>

touch

Create a new file if not exists

fun File.touch(): File