W3cubDocs

/Kotlin

onLeave

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

Platform and version requirements: JVM

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

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/-file-tree-walk/on-leave.html