Sure, you can use the API version of MakeSureDirectoryPathExists function to satisfy your needs, but here is an alternative way.
Latest Folder/Directory Maintenance Articles - Page 2
This piece of code will delete a folder that isn't empty in Windows NT or Windows 2000.
Function that takes a full path and walks that string creating each folder until all are created
Useful Win32 API-based function that deletes all folders and files within a specified folder
Single function to create multiple levels of folders
Latest CodeGuru Developer Columns
Learn to implement exception handling mechanism in C++.
Look at what can be done with mapping in a UWP (Universal Windows Platform) app.
With a UWP app, you can design for specific input modes and devices. Learn to control a camera from one.
Take advantage of pattern matching to check for patterns in your code, improve performance, and simplify your code.