CopyFiles.

To(Func<IFile, FilePath>) Method

Summary

Specifies an alternate destination path for each file (by default files are copied to their same relative path in the output directory). The output of the function should be the full file path (including file name) of the destination file. If the delegate returns null for a particular file, that file will not be copied.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Modules.IO
Containing Type
CopyFiles

Syntax

public CopyFiles To(Func<IFile, FilePath> destinationPath)

Parameters

Name Type Description
destinationPath Func<IFile, FilePath> A delegate that specifies an alternate destination. The parameter contains the source Wyam.Common.IO.IFile.

Return Value

Type Description
CopyFiles The current module instance.
GitHub