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);

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);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

oldPath

filesystem path of the file or directory to move

newPath

destination filesystem path

Created with MrDocs