Gets files matching the specified filter and scope.
- Namespace
- Statiq
.Common - Containing Type
- IDirectory
Syntax
IEnumerable<IFile> GetFiles(SearchOption searchOption = TopDirectoryOnly)
Parameters
| Name | Type | Description |
|---|---|---|
| searchOption | SearchOption | Specifies whether the operation should include only the current directory or should include all subdirectories. |
Return Value
| Type | Description |
|---|---|
| IEnumerable |
Files matching the specified filter and scope. |