groupByExtension
add only_file flag