Path::relative_from removes the common prefix from a path, e.g. /foo/bar relative_from /foo yields bar.
The old path_relative_from would calculate the relative path from two points on the file system, e.g. the relative path from /foo/bar to /foo/baz/qux is ../baz/qux. This is a useful operation.
Nominating because I think either relative_from is named wrong or is not useful.
Path::relative_fromremoves the common prefix from a path, e.g./foo/barrelative_from/fooyieldsbar.The old
path_relative_fromwould calculate the relative path from two points on the file system, e.g. the relative path from/foo/barto/foo/baz/quxis../baz/qux. This is a useful operation.Nominating because I think either
relative_fromis named wrong or is not useful.