Summary
Gets a
IFile instance representing the specified path.
- Namespace
- Cake
.Core .IO - Containing Type
- FileSystem
Syntax
public IFile GetFile(FilePath path)
Examples
var file = context.FileSystem.GetFile("./build.cake");
Information("Exists: {0}", file.Exists);
Parameters
| Name | Type | Description |
|---|---|---|
| path | FilePath | The path. |
