Accept directory or file input for parse.