Flatten file hierarchy.