Directory.rename

Renames (move) the from file or directory to the to destination. Both arguments should be paths to files or directories, either relative or absolute. If the destination file or directory exists and is not access-protected, it will be overwritten. Returns one of the error code constants (OK on success).

struct Directory
@nogc nothrow
GodotError
rename
(
in String from
,
in String to
)

Meta