Function image_paths

Source
pub fn image_paths<P>(root: P) -> Vec<PathBuf>
where P: Into<PathBuf> + Clone,
Expand description

Returns a vector of PathBuf representing paths to all images found in the given directory and all of its subdirectories.

§Arguments

  • root - A value that can be converted into a PathBuf and implements the Clone trait. This is the directory in which the search for images is performed.

§Returns

A vector of PathBuf representing paths to all images found in the given directory and all of its subdirectories. The paths are sorted alphabetically.