Is there an idiomatic Scala solution to obtain only the file *names* from `File.listFiles`?

Perhaps something like:

```
val names = new File(dir).listFiles.somemagicTrait(_getName) 

```

and have `names` become a `List[String]`?

I know I can just loop and add them to a mutable list.