Skip to main content

get_relative_path_from_home

Function get_relative_path_from_home 

Source
pub fn get_relative_path_from_home(
    exe_override: Option<&Path>,
    home_override: Option<&Path>,
) -> Option<String>
Expand description

Gets the relative path from home directory if the current executable is within it. Returns None if the executable is not in the home directory. Takes optional overrides for testing.