Added parse_single for parsing single directories