getFiles

open fun getFiles(dir: File, glob: String): Array<String>

Obtains a list of files that live in the specified directory and match the glob pattern.