ΒΆstd::error_code create_directories(
    const llvm::Twine& path,
    bool IgnoreExisting = true,
    llvm::sys::fs::perms Perms = owner_all |
                                 group_all)

Description

Create all the non-existent directories in path.

Declared at: llvm/include/llvm/Support/FileSystem.h:305

Parameters

const llvm::Twine& path
Directories to create.
bool IgnoreExisting = true
llvm::sys::fs::perms Perms = owner_all | group_all

Returns

errc::success if is_directory(path), otherwise a platform specific error_code. If IgnoreExisting is false, also returns error if the directory already existed.