read_dir_as_sorted_paths

Function read_dir_as_sorted_paths 

Source
fn read_dir_as_sorted_paths(
    path: impl AsRef<Path>,
) -> Result<Vec<PathBuf>, Error>
Expand description

Reads a directory path and returns its entries as a sorted list of paths.

ยงErrors

Returns an error if

  • path cannot be read using Path::read_dir,
  • or one of the directory entries in path is not readable.