There's more...

The filesystem library is heavily inspired by Boost.Filesystem, which has been available since 2003. If you want to experiment and debug a little, just add the -g option (add the debug symbols to the binary) to the compiler: g++ -g fs.cpp -std=c++17 -lstdc++fs.