Skip to main content

sibling_bin

Function sibling_bin 

pub fn sibling_bin(name: &str) -> Result<PathBuf>
Expand description

Finds a sibling binary next to the current executable.

ยงErrors

Returns SpikeError::Io if the current executable cannot be determined. Returns SpikeError::Oniro if the executable has no parent directory or if the requested sibling binary cannot be found.