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++.
Here's a checklist to prepare for upgrading from ASP.NET Core 1.1 to 2.0.
Probe the .NET MaskedTextBox control to gain understanding about user input.
With Microsoft's new Project Rome, the user experience across all platforms (Windows, iOS, or Android) will be seamless among different hardware.