I can use this function in the visualstudio debug mode and it works fine.
If I create an exe file with the release mode and run it, it doesnt create the directories for all entered paths. For example creating folders on the desktop works fine, but in C:\games it doesn't.