fn view_files( dir: impl AsRef<Path>, ) -> Result<impl Iterator<Item = (ViewNumber, PathBuf)>>
Get all paths under dir whose name is of the form .txt.
dir