Appearance
Copy Method
Definition
- Namespace:
JASE.IO - Assembly:
JASE.dll
void Copy(string sourceDirectory, string targetDirectory, bool preserveTimestamps = null)
csharp
void Copy(string sourceDirectory, string targetDirectory, bool preserveTimestamps = null)Copies the contents of one directory to another, optionally preserving timestamps.
Parameters
| Name | Description |
|---|---|
preserveTimestamps | If , the target directory timestamps are set to match the source directory after the copy completes. |
sourceDirectory | The path to the source directory to copy from. |
targetDirectory | The path to the target directory to copy to. It is created if it does not exist. |