W3cubDocs

/Kotlin

walk

fun File.walk(
    direction: FileWalkDirection = FileWalkDirection.TOP_DOWN
): FileTreeWalk

Platform and version requirements: JVM

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

Parameters

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

© 2010–2018 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