Accept either files or a directory for the list of stat files. #1365