Scala: How to search a directory tree with SimpleFileVisitor and Files.walkFileTreealvinDecember 7, 2019 - 2:01pm
As a brief note to self, if you ever want to write some code using Scala that recursively descends through a directory tree, here’s a solution that uses the Java SimpleFileVisitor
and Files.walkFileTree
method. First, here’s a skeleton class for the SimpleFileVisitor
part of the solution: