Finetune commit. Changed parseFile() not to break when it encounters a folder within given directory.