Boost logo

Boost Users :

Subject: [Boost-users] [filesystem] filesystem::absolute() doesn't work with ../relative_path or ./relative_path
From: Sachin Garg (schngrg_at_[hidden])
Date: 2011-10-07 00:22:32


In boost 1.47.0 filesystem v3, boost::filesystem::absolute only appends the
relative path to base path. It should also remove "./" from relative paths
and "backtrack" on base path if relative path contains "../../" etc.

For example,
Input:
  "d:\current\path"
  ".\..\relative\path"

Result obtained:
  "d:\current\path\.\..\relative\path"

Desired result:
  "d:\current\relative\path"

I have created a trac ticket for the same:
https://svn.boost.org/trac/boost/ticket/5988

SG



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net