Just name it as `filter`? The callback takes the full file path and returns a boolean value indicating whether to keep the file/dir in the resultset.