BloombergLP::bdls::FilesystemUtil::move

Move the file or directory at oldPath to newPath.

Synopses

Declared in <bdls_filesystemutil.h>

Move the file or directory at oldPath to newPath.

static
int
move(
    char const* oldPath,
    char const* newPath);
» more...

Move the file or directory at oldPath to newPath.

template<
    class OLD_STRING_TYPE,
    class NEW_STRING_TYPE>
static
int
move(
    OLD_STRING_TYPE const& oldPath,
    NEW_STRING_TYPE const& newPath);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
oldPathfilesystem path of the file or directory to move
newPathdestination filesystem path