Function std::os::path_is_dir

pub fn path_is_dir(p: &Path) -> bool

Indicates whether a path represents a directory