| 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
)
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 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:
BooleanTrue if the file was copied. False otherwise.
See Also