Regroup directories.