[#BloombergLP-bdls-FilesystemUtil-move-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::move
:relfileprefix: ../../../
:mrdocs:

Move the file or directory at `oldPath` to `newPath`&period;

== Synopses

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

Move the file or directory at `oldPath` to `newPath`&period;


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

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

Move the file or directory at `oldPath` to `newPath`&period;


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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *oldPath*
| filesystem path of the file or directory to move
| *newPath*
| destination filesystem path
|===


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