Summary
Gets a
IDirectory instance representing the specified path.
- Namespace
- Cake
.Core .IO - Containing Type
- FileSystem
Syntax
public IDirectory GetDirectory(DirectoryPath path)
Examples
var dir = context.FileSystem.GetDirectory("./artifacts");
Information("Exists: {0}", dir.Exists);
Parameters
| Name | Type | Description |
|---|---|---|
| path | DirectoryPath | The path. |
Return Value
| Type | Description |
|---|---|
| IDirectory | A IDirectory instance representing the specified path. |
