DirectoryAliases.

GetSubDirectories(ICakeContext, DirectoryPath) Method

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
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute 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
DirectoryPathCollection An absolute directory path.