To(Func<IFile, IFile, Task<NormalizedPath>>) Method
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. This overload allows you to view the IFile where the module would normally have copied the file to and then manipulate it (or not) as appropriate.
Namespace
Statiq.Core
Containing Type
CopyFiles

Syntax

public CopyFiles To(Func<IFile, IFile, Task<NormalizedPath>> destinationPath)

Parameters

Name Type Description
destinationPath Func<IFile, IFile, Task<NormalizedPath>> A delegate that specifies an alternate destination. The first parameter contains the source IFile and the second contains an IFile representing the calculated destination.

Return Value

Type Description
CopyFiles The current module instance.