Parser class to parse the directories