Skip to content

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 ​

NameDescription
preserveTimestampsIf , the target directory timestamps are set to match the source directory after the copy completes.
sourceDirectoryThe path to the source directory to copy from.
targetDirectoryThe path to the target directory to copy to. It is created if it does not exist.