If you can use C ++ (as suggested by the selected tags) and increase the libraries, the Boost file system can help you with create_directory .
If you do not want all the libraries available in your project, you can download the bcp tool to extract only the subset you need, in your case, increase the file system and its dependencies.
source share