Don't need to convert to `List`; just have this method return `Seq[File]` instead (which should be ok with the `Array[File]` you get back from `listFiles`.

Also, use parentheses for `listFiles()` to indicate it's not a pure function.