Summary
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
Syntax
public static IEnumerable<IDirectory> GetDirectories(this IDirectory directory, string filter, SearchScope scope, Func<IFileSystemInfo, bool> predicate)
Parameters
| Name |
Type |
Description |
| directory |
IDirectory |
The directory. |
| filter |
string |
The filter. |
| scope |
SearchScope |
The search scope. |
| predicate |
Func<IFileSystemInfo, bool> |
Predicate used to filter directories based on file system information. |
Return Value
| Type |
Description |
| IEnumerable<IDirectory> |
The directories matching the specified filter, scope and predicate. |