Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path::extension() of parent directory #166

Open
chan-lee opened this issue May 16, 2023 · 1 comment
Open

path::extension() of parent directory #166

chan-lee opened this issue May 16, 2023 · 1 comment
Assignees
Labels
available on master Fix is done on master branch, issue closed on next release bug Something isn't working
Milestone

Comments

@chan-lee
Copy link

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

@chan-lee chan-lee changed the title path::extension() of parent direcotry path::extension() of parent directory May 16, 2023
@gulrak gulrak self-assigned this May 17, 2023
@gulrak gulrak added the bug Something isn't working label May 17, 2023
@gulrak
Copy link
Owner

gulrak commented May 17, 2023

Yeah, you are right, that should not be.

@gulrak gulrak added this to the v1.5.16 milestone May 17, 2023
@gulrak gulrak added the available on master Fix is done on master branch, issue closed on next release label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
available on master Fix is done on master branch, issue closed on next release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants