Kotlin List Files with Filters Demo List the files of a directory, and filter them by some predication. Run Hello.kt in your IDE. Notice The code is a little complex, looking for a better solution.