Skip to main content

get_system_bin_dir

Function get_system_bin_dir 

Source
pub fn get_system_bin_dir() -> PathBuf
Expand description

Returns the directory used for system-wide command shims.

On Linux this follows the distro convention of /usr/bin. On macOS the SIP-protected /usr/bin cannot be written to, so /usr/local/bin is used instead. Windows keeps a dedicated directory below ProgramData.