Update codeParser.java

returning directory to pass into XMLParser