Skip to content

CopyAll Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

void CopyAll(DirectoryInfo source, DirectoryInfo target, bool preserveTimestamps = null) ​

csharp
void CopyAll(DirectoryInfo source, DirectoryInfo target, bool preserveTimestamps = null)

Recursively copies all files and subdirectories from a source directory to a target directory.

Parameters ​

NameDescription
preserveTimestampsIf , copied files have their timestamps adjusted to match the original files.
sourceThe source directory to copy from.
targetThe target directory to copy to. It is created if it does not exist.