Function remove_age_ext

Source
pub fn remove_age_ext<T: AsRef<Path>>(path: T) -> Result<PathBuf, T>
Expand description

Remove the .age suffix from a file path, if present.

Returns Err(original path) if the suffix isn’t present.