Skip to main content

executable_sibling_of_current_image

Function executable_sibling_of_current_image 

Source
pub fn executable_sibling_of_current_image(bare: &str) -> Option<PathBuf>
Expand description

Path to a sibling program installed beside the running image.

Returns None when the current image cannot be resolved, has no parent directory, or the sibling is not a file — all of which mean the same thing to a caller: this program is not installed next to us, look elsewhere.