is_directory_path

Function is_directory_path 

Source
pub fn is_directory_path(path: &PathBuf) -> bool
Expand description

Determines if a path represents a directory

This function uses heuristics based on file extension to guess if the path is meant to be a directory rather than actually checking the filesystem.

§Arguments

  • path - PathBuf to analyze

§Returns

  • bool - True if the path likely represents a directory, false otherwise