rename

Renames the given file.

extern (C) nothrow @nogc extern
int
rename
(
const(char)* oldName
,
const(char)* newName
)

Parameters

oldName const(char)*

Path to the file to rename, in system encoding.

newName const(char)*

The new path of the file, in system encoding.

Return Value

Type: int

0 on success.

Meta