| 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
)
Public Shared Function Copy (
path As String,
newPath As String,
Optional overwrite As Boolean = false
) As Boolean
public:
static bool Copy(
String^ path,
String^ newPath,
bool overwrite = false
)
static member Copy :
path : string *
newPath : string *
?overwrite : bool
(* Defaults:
let _overwrite = defaultArg overwrite false
*)
-> bool
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:
BooleanTrue if the directory was copied. False otherwise.
See Also