Gets matching files based on globbing patterns from the root path or absolute paths.
- Namespace
- Statiq
.Common - Containing Type
- I
Read Only File System Extensions
Syntax
public static IEnumerable<IFile> GetFiles(this IReadOnlyFileSystem fileSystem, params string[] patterns)
Parameters
Name | Type | Description |
---|---|---|
fileSystem | IReadOnlyFileSystem | The file system. |
patterns | string[] | The globbing patterns and/or absolute paths. |
Return Value
Type | Description |
---|---|
IEnumerable |
All files in the specified directory that match the globbing patterns and/or absolute paths. |