Gets matching files based on globbing patterns and/or absolute paths. If any absolute paths
are provided, only those that actually exist are returned.
Syntax
public static IEnumerable<IFile> GetFiles(this IReadOnlyFileSystem fileSystem, IDirectory directory, IEnumerable<string> patterns)
Parameters
Name |
Type |
Description |
fileSystem |
IReadOnlyFileSystem |
The file system. |
directory |
IDirectory |
The directory to search. |
patterns |
IEnumerable<string> |
The globbing patterns and/or absolute paths. |
Return Value
Type |
Description |
IEnumerable<IFile> |
All files in the specified directory that match the globbing patterns and/or absolute paths.
|