Summary
Gets directories matching the specified filter and scope.
Syntax
public IEnumerable<IDirectory> GetDirectories(string filter, SearchScope scope)
Examples
var dir = context.FileSystem.GetDirectory("./src");
foreach (var child in dir.GetDirectories("*", SearchScope.Current))
{
Information(child.Path);
}
Parameters
| Name |
Type |
Description |
| filter |
string |
The filter. |
| scope |
SearchScope |
The search scope. |
Return Value
| Type |
Description |
| IEnumerable<IDirectory> |
Directories matching the filter and scope. |