getting all the directories