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

Set the working directory of the current process to the specified `path`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
setWorkingDirectory(char const* path);
----

== Description

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;

== Return Value

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

== Parameters

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


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