Reads all files that match the specified globbing patterns and/or absolute paths. This allows you to
specify different patterns and/or paths depending on the input.
- Namespace
- Statiq
.Core - Containing Type
- ReadFiles
Syntax
public ReadFiles(Config<IEnumerable<string>> patterns)
Parameters
Name | Type | Description |
---|---|---|
patterns | Config |
A delegate that returns one or more globbing patterns and/or absolute paths. If the delegate returns a null or empty collection, all files will be read. If the delegate returns a single pattern as null or an empty string pattern, no files will be read. |