Summary
Represents a
To get the underlying :
DirectoryPath
that can be easily converted.
ConvertableDirectoryPath convertable = Directory("./root");
DirectoryPath path = (DirectoryPath)convertable;
To combine two directories:
ConvertableDirectoryPath path = Directory("./root") + Directory("other");
To combine a directory with a file:
ConvertableFilePath path = Directory("./root") + File("other.txt");
- Namespace
- Cake
.Common .IO .Paths - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ConvertableDirectoryPath"]
class Type type-node
Syntax
public sealed class ConvertableDirectoryPath
Properties
Name | Value | Summary |
---|---|---|
Path | DirectoryPath |
Gets the path.
|
Methods
Name | Value | Summary |
---|---|---|
ToString |
string |
Returns a
string that represents this instance.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
DirectoryPath | |
implicit operator string |
string | |
operator + |
Convertable |
|
operator + |
ConvertableFilePath | |
operator + |
Convertable |
|
operator + |
ConvertableFilePath | |
operator + |
Convertable |
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
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
|