
7 Feb
2009
7 Feb
'09
2:39 a.m.
On Fri, Feb 6, 2009 at 21:22, Kenny Riddile <kfriddile@yahoo.com> wrote:
Is there any existing functionality for getting a relative path from a full path, where the desired relative path is relative to an arbitrary directory path? If not, I'm assuming I would just have to walk up both full paths until I find their intersection...etc
There isn't yet, though I have a ticket filed requesting one: https://svn.boost.org/trac/boost/ticket/1976 Please add your use case to that ticket. The v3 lib under discussion has a read_symlink function which will allow a non-naïve implementation. In the mean time, if you're in windows you can try the implementation in the ticket.