pub fn parse_dir<P: AsRef<Path>>(path: P) -> Result<Vec<DirEntry>>