www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - function for inverse relative path?

what would be a robust way to do this `inverseRelativePath`, and
should that be in std.path?

```
auto a="/a/b/c.d";
auto b="b/c.d";
assert(inverseRelativePath(a, b) == "/a");
assertThrown(inverseRelativePath(a, "c2.d"));
```
Dec 06 2017