To(Func<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.
Namespace
Statiq.Core
Containing Type
CopyFiles

Syntax

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

Parameters

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

Return Value

Type Description
CopyFiles The current module instance.