Describe the bug
With ../..
only 1 dir is unrolled.
To Reproduce
const char *path = "ab/cd/ef/../../qw";
ghc::filesystem::path srcPath = ghc::filesystem::u8path(path);
std::string destPath = srcPath.lexically_normal().u8string();
Expected behavior
Should produce ab/qw
, produces ab/cd/qw
.
Attached is a test project.
UPD:
More test cases:
"\\/\\///\\/"
produces //////
, expected /
.
"a/b/..\\//..///\\/../c\\\\/"
produces a/b/c///
, expected ../c/
.
"a/b/../../../c"
produces a/c
, expected ../c
.
"..a/b/..\\//..///\\/../c\\\\/"
produces ..a/b/c///
, expected ../c/
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4