This class is intended to implement different file traversal methods. It allows to iterate through all files inside a given directory.
Use File.walk, File.walkTopDown or File.walkBottomUp extension functions to instantiate a FileTreeWalk
instance.
If the file path given is just a file, walker iterates only it. If the file path given does not exist, walker iterates nothing, i.e. it's equivalent to an empty sequence.
Sets the maximum depth of a directory tree to traverse. By default there is no limit.
Sets a predicate function, that is called on any entered directory before its files are visited and before it is visited itself.
Appends all elements that are instances of specified class to the given destination.
Returns a SortedSet of all elements.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/-file-tree-walk/index.html