Summary
Gets the file system.
- Namespace
- Cake
.Core - Containing Type
- ICakeContext
Syntax
IFileSystem FileSystem { get; }
Examples
Task("Check-Publish")
.Does(context =>
{
if (context.FileSystem.Exist("./publish.enabled"))
{
Information("Publish is enabled");
}
});
Value
| Type | Description |
|---|---|
| IFileSystem | The file system. |
