Given two absolute paths, e.g.
/var/data/stuff/xyz.dat /var/data
How can one create a relative path that uses the second path as its base?
Psuedo-code:
return "." + whicheverPathIsLonger.substring(commonPath.length);