onLeave

fun onLeave(function: (File) -> Unit): FileTreeWalk(source)

Sets a callback function, that is called on any left directory after its files are visited and after it is visited itself.

Since Kotlin

1.0