Summary
Contains extensions for
FilePath and DirectoryPath.
- Namespace
- Cake
.Core .IO - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["PathExtensions"]
class Type type-node
Syntax
public static class PathExtensions
Methods
| Name | Value | Summary |
|---|---|---|
| Expand |
DirectoryPath |
Expands all environment variables in the provided
DirectoryPath.
static
|
| Expand |
FilePath |
Expands all environment variables in the provided
FilePath.
static
|
| ExpandShortPath |
DirectoryPath |
Expands short paths (e.g. C:/Users/ABCDEF~1) to long paths (e.g. C:/Users/abcdefghij).
Note that this method only works for absolute paths, as relative paths cannot be expanded without impact. static
|
| ExpandShortPath |
FilePath |
Expands short paths (e.g. C:/Users/ABCDEF~1) to long paths (e.g. C:/Users/abcdefghij).
Note that this method only works for absolute paths, as relative paths cannot be expanded without impact. static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
