How to obtain an Array[io.BufferedSource]
to all files that match a wildcard in a given directory ?
Namely, how to define a method io.Source.fromDir
such that
val txtFiles: Array[io.BufferedSource] = io.Source.fromDir("myDir/*.txt") // ???
Noticed FileUtils in Apache Commons IO, yet much preferred is a Scala API based approach without external dependencies.