BloombergLP::bdls::FilesystemUtil::getSystemTemporaryDirectory

Load a valid path to the system temporary directory into path.

Synopsis

Declared in <bdls_filesystemutil.h>

static
int
getSystemTemporaryDirectory(bsl::string* path);

Description

Return 0 on success, and a non-zero value otherwise. A temporary directory is one in which the operating system has permission to delete its contents, but not necessarily the directory itself, the next time the computer reboots.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
pathreceives the system temporary directory