Flatten the directories