pub fn get_files(
folder_path: &Path,
matcher: &PathMatcher,
) -> impl Iterator<Item = FileEntry>Expand description
Walks folder_path and yields every file that belongs to the folder.
Files are visited in a deterministic order (sorted by file name at each level). Entries are skipped, never panicking, when they cannot be used:
- names that are not valid UTF-8;
- names that are not valid lookup keys (see [
is_valid_key]), including names containing a backslash on non-Windows platforms; - paths that cannot be canonicalized (for example a symlink that was removed while the folder was being walked);
- files whose canonical path leaves
folder_path(symbolic links pointing outside the folder).