BloombergLP::bdls::FilesystemUtil::createTemporaryDirectory

Create a new temporary directory with a name based on prefix.

Synopses

Declared in <bdls_filesystemutil.h>

Create a new temporary directory with a name based on prefix.

static
int
createTemporaryDirectory(
    bsl::string* outPath,
    std::string_view const& prefix);
» more...

Create a new temporary directory with a name based on prefix.

static
int
createTemporaryDirectory(
    std::pmr::string* outPath,
    std::string_view const& prefix);
» more...

Create a new temporary directory with a name based on prefix.

static
int
createTemporaryDirectory(
    std::string* outPath,
    std::string_view const& prefix);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
outPathreceives the path of the created directory
prefixprefix of the generated directory name