Click or drag to resize

DirectoryRename Method

Renames (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.

Returns one of the Error code constants (OK on success).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error Rename(
	string from,
	string to
)

Parameters

from
Type: SystemString

[Missing <param name="from"/> documentation for "M:Godot.Directory.Rename(System.String,System.String)"]

to
Type: SystemString

[Missing <param name="to"/> documentation for "M:Godot.Directory.Rename(System.String,System.String)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.Directory.Rename(System.String,System.String)"]

See Also