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, Action<IFileSystemInfo> action)
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. |
action |
Action<IFileSystemInfo> |
Callback if directory gets filtered by predicate. |
Return Value
Type |
Description |
IEnumerable<IDirectory> |
The directories matching the specified filter, scope and predicate. |