Re: [Boost-users] Translating an absolute path to a path relative
Date: Mon, 31 Oct 2005 09:55:57 -0300 From: Hermann Rodrigues
Subject: [Boost-users] Translating an absolute path to a path relative to the current directory To: boost-users@lists.boost.org Message-ID: <497dfc460510310455j1bd56615peffd2f6040fe849e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hi,
I am running into the following problem these days:
I need to translate an absolute path to a path relative to the current directory on Windows. The translation process need to include all required ".." directory specifiers in the path to make sure it can be accessed from the current directory.
Have you tried the Windows functions such as PathRelativePathTo, and its compliment PathCombine?
Hi,
I was looking for a portable solution. That is why I was trying to use
the boost::filesystem library. But I will accept your sugestion and
use PathRelativePathTo for now.
Thanks,
Hermann
On 10/31/05, Gottlob Frege
Date: Mon, 31 Oct 2005 09:55:57 -0300 From: Hermann Rodrigues < hermann.rodrigues@gmail.com> Subject: [Boost-users] Translating an absolute path to a path relative to the current directory To: boost-users@lists.boost.org Message-ID:
<497dfc460510310455j1bd56615peffd2f6040fe849e@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I am running into the following problem these days:
I need to translate an absolute path to a path relative to the current directory on Windows. The translation process need to include all required ".." directory specifiers in the path to make sure it can be accessed from the current directory.
Have you tried the Windows functions such as PathRelativePathTo, and its compliment PathCombine?
participants (2)
-
Gottlob Frege
-
Hermann Rodrigues