BloombergLP::bdls::FilesystemUtil::createTemporarySubdirectory

Create a new temporary directory under rootDirectory.

Synopses

Declared in <bdls_filesystemutil.h>

Create a new temporary directory under rootDirectory.

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

Create a new temporary directory under rootDirectory.

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

Create a new temporary directory under rootDirectory.

static
int
createTemporarySubdirectory(
    std::string* outPath,
    std::string_view const& rootDirectory,
    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
rootDirectorydirectory in which to create the subdirectory
prefixprefix of the generated directory name