IFile.

CopyTo(IFile, bool, bool) Method

Summary

Copies the file to the specified destination file.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.IO
Containing Type
IFile

Syntax

void CopyTo(IFile destination, bool overwrite = true, bool createDirectory = true)

Parameters

Name Type Description
destination IFile The destination file.
overwrite bool Will overwrite existing destination file if set to true.
createDirectory bool Will create any needed directories that don't already exist if set to true.

Return Value

Type Description
void
GitHub