pub fn list(
root: impl AsRef<Path>,
options: &ListOptions,
) -> Result<Vec<FileEntry>, PathError>Available on crate feature
listing only.Expand description
List filesystem entries under root according to options.
Results are sorted when options.sort is not SortMode::None.
§Filesystem access
Yes. Requires root to exist. Does not follow symlinks by default.
Does not read file contents.
§Security
Always set max_depth / max_entries for untrusted roots.