c++17 filesystem examples

Some of C++17 filesystem module examples can be found here. These examples include:

  1. How to get current and temporary directories and evaluates disk sizes.
  2. How to manipulate a path to a folder or file.
  3. How to get list of files in a folder.
  4. How to watch a folder to contents changes.


FileSystem Module in c++17

C++17 supports Filesystem library (https://en.cppreference.com/w/cpp/filesystem). If you are using it in your application you have to passĀ -lstdc++fs to g++ to make use of it. Otherwise you will end up with undefined reference(s) to std::filesystem::