Okay, this seems to be the solution I should have ...
# announcements
e
Okay, this seems to be the solution I should have used first:
Copy code
val files = ArrayList<Path>()

    class fileVisitor : SimpleFileVisitor<Path>() {

        override fun visitFile(path: Path, fileAttributes: BasicFileAttributes) : FileVisitResult {
            println(path)
            files.add(path)
            return CONTINUE
        }
    }
Again, I got tripped up doing things the Scala way instead of the Java way. I just don't grok collections in Kotlin yet.