pub fn strip_dir_trailing_separator(input: &str) -> String
Removes trailing separators while preserving roots.