gulrak/filesystem

path::extension() of parent directory

chan-lee opened this issue · 1 comments

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

Yeah, you are right, that should not be.