A thin wrapper for fs to group files by type