Enables the callback to filter files based on a criteria