Click or drag to resize
Galactic API

FileCopy Method

Copies a file to a new location.

Namespace:  Galactic.FileSystem
Assembly:  Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static bool Copy(
	string path,
	string newPath,
	bool overwrite = false
)

Parameters

path
Type: SystemString
The path of the file to move.
newPath
Type: SystemString
The destination path to copy the file to.
overwrite (Optional)
Type: SystemBoolean
Whether to overwrite the contents of a file if it already exists.

Return Value

Type: Boolean
True if the file was copied. False otherwise.
See Also