Check out example codes for "mkdir c++". It will help you in understanding the concepts better.

Code Example 1

#include <boost/filesystem.hpp>

namespace fs = boost::filesystem;
fs::create_directory( fs::current_path() + mysubdirectoryname );

Learn ReactJs, React Native from akashmittal.com