folly::fileutil_detail::getTemporaryFilePathString

Returns a string compatible for mkstemp().

Synopsis

Declared in <folly/detail/FileUtilDetail.h>

std::string
getTemporaryFilePathString(
    std::string const& filePath,
    std::string const& temporaryDirectory);

Return Value

A path template string suitable for mkstemp().

Parameters

NameDescription
filePathThe target file path.
temporaryDirectoryThe directory for the temporary file.