difft::options

Function common_path_suffix

Source
fn common_path_suffix(lhs_path: &Path, rhs_path: &Path) -> Option<String>
Expand description

If lhs_path and rhs_path have a common ending, return that.

For example, given dir1/foo/bar.py and dir2/foo/bar.py, return foo/bar.py.