Currently getting recursively a filtered list of files in a directory is clumsy because filtering should happen afterwards on the result list.
Imagine we want to list all non hidden files recursively.
The non hidden files filter is defined as:
Then we can do:
For example each of these paths should be skipped:
It would be lot better to have a filter parameter on listFiles. This is needed to solve