filesystem icon indicating copy to clipboard operation
filesystem copied to clipboard

path::extension() of parent directory

Open chan-lee opened this issue 2 years ago • 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

chan-lee avatar May 16 '23 23:05 chan-lee

Yeah, you are right, that should not be.

gulrak avatar May 17 '23 05:05 gulrak