Flatten the directory structure.