[#BloombergLP-bdls-FilesystemUtil-createTemporarySubdirectory-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::createTemporarySubdirectory
:relfileprefix: ../../../
:mrdocs:

`createTemporarySubdirectory` overloads

== Synopses

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

Create a new directory with a name constructed by appending an automatically&hyphen;generated suffix to the specified `prefix` within the specified `rootDirectory`&period; A non&hyphen;zero return value indicates that no such directory could be created&semi; otherwise the name of the directory created is assigned to the specified `outPath`&period; The directory is created with permissions restricted, as closely as possible, to the caller only&period; If the `rootDirectory` is a relative path, the directory is created relative to the process current directory&period; Responsibility for deleting the directory (and any files subsequently created in it) is left to the caller&period;


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

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

Same as the overload taking `bsl&colon;&colon;string &ast;`&period;


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

[.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporarySubdirectory-0f.adoc[_» more&period;&period;&period;_]#

Same as the overload taking `bsl&colon;&colon;string &ast;`&period;


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

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


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