Summary
Gets a list of all the directories inside a directory.
- Namespace
- Cake
.Common .IO - Containing Type
- DirectoryAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("List")]
public static DirectoryPathCollection GetSubDirectories(this ICakeContext context, DirectoryPath directoryPath)
Examples
var directories = GetSubDirectories("some/dir");
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
directoryPath | DirectoryPath | The directory path. |
Return Value
Type | Description |
---|---|
Directory |
An absolute directory path. |