Update parser to support scanning an individual file, as well as a directory.