Use llvm::sys::fs::create_directories to create new directory on Windows - to allow recursive creation of non-existing folders.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I kind of don't like the shell functions and would prefer to avoid them wherever possible. They're very heavyweight, can fail for mysterious reasons, and are all intertwined with displaying UI and all other kinds of unnecessary stuff. Plus, MSDN says this function was dropped in Vista (There's SHCreateDirectoryEx apparently, but even that function has a deprecation warning on MSDN).
LLVM has llvm::sys::fs::create_directories() in llvm/Support/FileSystem.h. Can you try that and see if it satisfies your needs?
Comment Actions
Switched to use lvm::sys::fs::create_directories instead of SHCreateDirectory.
Please take another look.