Click or drag to resize
Galactic API

DirectoryCopy Method

Copies a directory to a new location including all files and folders beneath it. Creates a new directory if necessary.

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 directory to copy.
newPath
Type: SystemString
The destination path to copy the directory to.
overwrite (Optional)
Type: SystemBoolean
Whether to overwrite any existing files in the directory being copied to.

Return Value

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