[#BloombergLP-bdls-FilesystemUtil-createTemporaryDirectory-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::createTemporaryDirectory
:relfileprefix: ../../../
:mrdocs:

Create a new temporary directory with a name based on `prefix`&period;

== Synopses

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

Create a new temporary directory with a name based on `prefix`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-063b.adoc[createTemporaryDirectory](
    xref:bsl/string.adoc[bsl::string]* outPath,
    std::string&lowbar;view const& prefix);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-063b.adoc[_» more&period;&period;&period;_]#

Create a new temporary directory with a name based on `prefix`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-0635.adoc[createTemporaryDirectory](
    std::pmr::string* outPath,
    std::string&lowbar;view const& prefix);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-0635.adoc[_» more&period;&period;&period;_]#

Create a new temporary directory with a name based on `prefix`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-08.adoc[createTemporaryDirectory](
    std::string* outPath,
    std::string&lowbar;view const& prefix);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-08.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outPath*
| receives the path of the created directory
| *prefix*
| prefix of the generated directory name
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
