fn files_in_dir(
path: impl AsRef<Path>,
list: &mut Vec<PathBuf>,
) -> Result<(), Error>Expand description
Collects all regular files in a directory path.
ยงErrors
Returns an error if
pathis not a directory,- an entry in
pathcannot be read, - metadata for an entry in
pathcannot be retrieved, - or any path in
pathdoes not represent a regular file.