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++.
Computer software used to be written for serial computation by a serial computer. Circumvent that concept and work in parallel streams.
With .NET Standard, you only have to master one platform, which will be able to run on all .NET platforms.
It's good practice to use code metrics to validate code; it will improve code quality and make your application maintainable and less complex.