Skip to main content

find_on_path

Function find_on_path 

Source
pub fn find_on_path(program: &str) -> Option<PathBuf>
Expand description

Locate program on PATH. A name with a path separator is checked as-is. On Windows, a bare name is tried with every PATHEXT suffix (.exe, .cmd, …) as well as verbatim.