Created
April 9, 2018 13:44
-
-
Save kgilmer/a70ca9f527a1fdfc4acdbf17d9c8fef1 to your computer and use it in GitHub Desktop.
Visit each child in a directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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