Skip to content

path::extension() of parent directory #166

Open
@chan-lee

Description

@chan-lee

Describe the bug
extension of a path ending in parent directory returns "."

To Reproduce
CHECK(fs::path("/foo/..").extension() == ".");

Expected behavior
but reference site is different ( https://en.cppreference.com/w/cpp/filesystem/path/extension )
CHECK(fs::path("/foo/..").extension() == "");

Additional context
nothing

Metadata

Metadata

Assignees

Labels

available on masterFix is done on master branch, issue closed on next releasebugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions