From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-07-11 21:35:13
On Fri, Jul 11, 2008 at 14:11, LoÃ¯c Joly
> I'd like to know if there is in boost::filesystem a way to "resolve" a path.
> For instance, I have a path that is built from :
> And I'd like to obtain:
As I recall, that used to be called canonize, but it seems to have disappeared.
There are still references to it, though, such as "Move canonize() and
normalize() to convenience.hpp?" in the do list, and "Symbolic links
cause canonical and normal form of some paths to represent different
files or directories. For example, given the directory hierarchy
/a/b/c, with a symbolic link in /a named x pointing to b/c, then
under POSIX Pathname Resolution rules a path of "/a/x/.." should
resolve to "/a/b". If "/a/x/.." were first normalized to "/a", it
would resolve incorrectly. (Case supplied by Walter Landry.)" in the
(It'd be nice to have to make uncomplete easy to write, too.)