pub fn strip_common(base: &Path, path: &Path) -> StringExpand description
Returns the common parts of two paths.
The goal of this function is to reduce the path length based on the base argument
(generally the path where the program is running into). For example:
current dir: /a/b/c
path: /a/b/c/d/e.txtstrip_common will return d/e.txt.