Skip to content

Instantly share code, notes, and snippets.

@kgilmer
Created April 9, 2018 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgilmer/a70ca9f527a1fdfc4acdbf17d9c8fef1 to your computer and use it in GitHub Desktop.
Save kgilmer/a70ca9f527a1fdfc4acdbf17d9c8fef1 to your computer and use it in GitHub Desktop.
Visit each child in a directory.
import java.io.File
fun main(args: Array<String>) {
File(args[0])
.walk()
.forEach { sourceFile ->
println("Reading $sourceFile")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment