fn recursively_collect_files(
path: impl AsRef<Path>,
) -> Result<Vec<PathBuf>, Error>
Expand description
Recursively collects the paths to all regular files in a directory.
Appends all regular files in the directory (and any subdirectory) to a list of paths and returns
them sorted.
Calls this function on any directory in path
.
ยงErrors
Returns an error if
- entries in
path
cannot be retrieved, - reading an entry in
path
fails, - or calling
recursively_collect_files
on any subdirectory ofpath
fails.