December 06, 2017 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")); ``` |
Copyright © 1999-2021 by the D Language Foundation