assert(Path("/some/path").relativeTo(Path("/")) == Path("some/path")); assert(Path("/some/path/").relativeTo(Path("/some/other/path/")) == Path("../../path/")); assert(Path("/some/path/").relativeTo(Path("/some/other/path")) == Path("../../path/"));
relativeToWeb
Computes the relative path from base_path to this path.