Sure, you can use the API version of MakeSureDirectoryPathExists function to satisfy your needs, but here is an alternative way.
Latest File & Folder Articles - Page 5
This is a function to deal with creating complete (multi-level) paths.
This piece of code will delete a folder that isn't empty in Windows NT or Windows 2000.
Single control that contains both an edit control to type in a file name and a button to browse
This class helps you to monitor files. You are notified if a file is modified outside the program.
Function that takes a full path and walks that string creating each folder until all are created
Latest CodeGuru Developer Columns
Learn to implement exception handling mechanism in C++.
The addition of ValueTask to the asynchronous tool box has been a big new feature in C# 7.
Learn how you can use Visual Basic to make a program that mounts ISO files.
Take advantage of pattern matching to check for patterns in your code, improve performance, and simplify your code.