W3cubDocs

/Kotlin

walk

Platform and version requirements: JVM (1.0)
fun File.walk(
    direction: FileWalkDirection = FileWalkDirection.TOP_DOWN
): FileTreeWalk

Gets a sequence for visiting this directory and all its content.

Parameters

direction - walk direction, top-down (by default) or bottom-up.

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