Flatten directories.