Skip to content
Advertisement

Tag: emscripten

The std::filesystem current_path returns the root one

I just wanna to print the current path and its content, via std::filesystem::path::current_path (the compiler is emcc this one). Some code below: And for windows it works fine, the output looks like: However, whether for Linux subsystem or for docker container with Ubuntu image it just prints the root directory: May be I something missed apropos the Linux’s std::filesystem? Answer

Advertisement