[#BloombergLP-bdls-FilesystemUtil-createTemporaryDirectory-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::createTemporaryDirectory :relfileprefix: ../../../ :mrdocs: `createTemporaryDirectory` overloads == Synopses Declared in `<bdls_filesystemutil.h>` Create a new directory with a name constructed by appending an automatically‐generated suffix to the specified `prefix`. A non‐zero return value indicates that no such directory could be created; otherwise the name of the directory created is assigned to the specified `outPath`. The directory is created with permissions restricted, as closely as possible, to the caller only. If the prefix is a relative path, the directory is created relative to the process current directory. Responsibility for deleting the directory (and any files subsequently created in it) is left to the caller. [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_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-063b.adoc[_» more..._]# Same as the overload taking `bsl::string *`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-0635.adoc[createTemporaryDirectory]( std::pmr::string* outPath, std::string_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-0635.adoc[_» more..._]# Same as the overload taking `bsl::string *`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-08.adoc[createTemporaryDirectory]( std::string* outPath, std::string_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryDirectory-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#