Boost logo

Boost :

Subject: Re: [boost] [filesystem] relative path from arbitrary file system location?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-02-06 21:39:26


On Fri, Feb 6, 2009 at 21:22, Kenny Riddile <kfriddile_at_[hidden]> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk