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
pathcannot be retrieved, - reading an entry in
pathfails, - or calling
recursively_collect_fileson any subdirectory ofpathfails.