Click or drag to resize

DirectoryCopy Method

Copies 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 Copy(
	string from,
	string to
)

Parameters

from
Type: SystemString

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

to
Type: SystemString

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

Return Value

Type: Error

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

See Also