Skip to main content

existing_or_legacy

Function existing_or_legacy 

Source
pub fn existing_or_legacy(current: PathBuf, legacy: &Path) -> PathBuf
Expand description

current if it exists, else legacy if that exists, else current. For default file locations that moved with the rename: an installation that still has only the old file keeps working, and a fresh one gets the new location.