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? In the example above, the result should be: ./stuff/xyz.dat

23 Answers
23

Leave a Reply

Your email address will not be published. Required fields are marked *