I\'m trying to create a folder if it doesn\'t exist. I\'m using Windows and I am not interested on my code working in other platforms.
Never mind, I found the solution.
boost::filesystem::create_directories does just that: Give it a path, and it will create all missing directories in that path.
boost::filesystem::create_directories