From what I gather, std::path seems to focus on being a low level API that can work on non-traditional systems. This means it cannot assume what is intended by extraneous/s,., or..`.
Yes, there is canonicalize but sometimes you need it done on relative paths when doing comparisons.
Python's pathlib automatically cleans up paths like this.
playground
From what I gather,
std::path
seems to focus on being a low level API that can work on non-traditional systems. This means it cannot assumewhat is intended by extraneous
/s,
., or
..`.Yes, there is canonicalize but sometimes you need it done on relative paths when doing comparisons.
Python's
pathlib
automatically cleans up paths like this.