Directory.rename

Rename (move) the from file to the to destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. Return one of the error code constants defined in @GlobalScope (OK or FAILED).

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

Meta