pub fn list_dir(
dir: &ScopedPath,
limits: &Limits,
) -> Result<Listing, FilesError>Expand description
Lists a directory already resolved through the scope. Hidden files are skipped; folders first, then by name; at most
limits.entries() are kept, after the sort.
A bare path is refused at compile time:
ⓘ
let _ = krizaka_rust::files::list_dir(std::path::Path::new("/etc"), &Default::default());