Summary
Provides properties and instance methods for working with paths.
This class must be inherited.
- Namespace
- Cake
.Core .IO - Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type["Path"]
class Type type-node
Derived0["DirectoryPath"]-->Type
click Derived0 "/api/Cake.Core.IO/DirectoryPath"
Derived1["FilePath"]-->Type
click Derived1 "/api/Cake.Core.IO/FilePath"
Syntax
public abstract class Path
Constructors
Name | Summary |
---|---|
Path |
Initializes a new instance of the Path class.
|
Properties
Name | Value | Summary |
---|---|---|
FullPath | string |
Gets the full path.
|
IsRelative | bool |
Gets a value indicating whether or not this path is relative.
|
IsUNC | bool |
Gets a value indicating whether or not this path is an UNC path.
|
Segments | string[] |
Gets the segments making up the path.
|
Separator | char |
Gets the separator this path was normalized with.
|
Methods
Name | Value | Summary |
---|---|---|
ToString |
string |
Returns a
string that represents this path.
|
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
|