Summary
Makes the path absolute (if relative) using the current working directory.
- Namespace
- Cake
.Common .IO - Containing Type
- FileAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Path")]
public static FilePath MakeAbsolute(this ICakeContext context, FilePath filePath)
Examples
var path = MakeAbsolute(File("./resources"));
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. |
filePath | FilePath | The path. |
Return Value
Type | Description |
---|---|
FilePath | An absolute file path. |