-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Labels
available on masterFix is done on master branch, issue closed on next releaseFix is done on master branch, issue closed on next releasebugSomething isn't workingSomething isn't workinghighSeverity: highSeverity: high
Milestone
Description
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/.
Metadata
Metadata
Assignees
Labels
available on masterFix is done on master branch, issue closed on next releaseFix is done on master branch, issue closed on next releasebugSomething isn't workingSomething isn't workinghighSeverity: highSeverity: high