[#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`. == Synopses Declared in `<bdls_filesystemutil.h>` Move the file or directory at `oldPath` to `newPath`. [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..._]# Move the file or directory at `oldPath` to `newPath`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class OLD_STRING_TYPE, class NEW_STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/move-06.adoc[move]( OLD_STRING_TYPE const& oldPath, NEW_STRING_TYPE const& newPath); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/move-06.adoc[_» more..._]# == Return Value 0 on success, and a non‐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]#