[#BloombergLP-bdls-FilesystemUtil-createPrivateDirectory-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::createPrivateDirectory
:relfileprefix: ../../../
:mrdocs:

Create a private directory with the specified `path`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
int
createPrivateDirectory(STRING&lowbar;TYPE const& path);
----

== Description

Same as the overload taking `const char &ast;`&period;

== Return Value

0 on success, `k&lowbar;ERROR&lowbar;PATH&lowbar;NOT&lowbar;FOUND` or `k&lowbar;ERROR&lowbar;ALREADY&lowbar;EXISTS` as described above, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| filesystem path of the directory to create
|===


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