Is there any way of creating a directory with the windows API and all its parent directories as needed with one function? I mean something as mkdir -p in Linux.
I've found this function but it does not seem to work, and is almost deprecated: SHCreateDirectoryEx()
I've also found this stack overflow question that seems quite similar to mine, but actually the OP is creating a subdirectory in a directory that already exists.
My third approach would be to iterate through the path in order to create all directories one by one, but I dont really like this option. There has to be a much better way to do it!