Copy the contents of one directory to another.
Namespace: Bespoke.CommonAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 5.0.0.0 (5.0.0.0)
Public Shared Sub CopyDirectory ( _
sourceDirectory As String, _
destinationDirectory As String, _
Optional overwrite As Boolean = True _
)
Public Shared Sub CopyDirectory ( _
sourceDirectory As String, _
destinationDirectory As String, _
Optional overwrite As Boolean = True _
)
public static void CopyDirectory(
string sourceDirectory,
string destinationDirectory,
bool overwrite = true
)
public static void CopyDirectory(
string sourceDirectory,
string destinationDirectory,
bool overwrite = true
)
public:
static void CopyDirectory(
String^ sourceDirectory,
String^ destinationDirectory,
bool overwrite = true
)
public:
static void CopyDirectory(
String^ sourceDirectory,
String^ destinationDirectory,
bool overwrite = true
)
Parameters
- sourceDirectory
- Type: System String
The directory to copy from.
- destinationDirectory
- Type: System String
The directory to copy to.
- overwrite (Optional)
- Type: System Boolean
true to allow an existing file to be overwritten; otherwise, false.