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

`setWorkingDirectory` overloads

== Synopses

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

Set the working directory of the current process to the specified `path`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The parameterized `STRING&lowbar;TYPE` must be one of `bsl&colon;&colon;string`, `std&colon;&colon;string`, `std&colon;&colon;pmr&colon;&colon;string` (if supported), `bsl&colon;&colon;string&lowbar;view`, or `bslstl&colon;&colon;StringRef`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-09.adoc[setWorkingDirectory](char const* path);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
int
xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-06.adoc[setWorkingDirectory](STRING&lowbar;TYPE const& path);
----

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


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