Summary
Extensions for
string
for handling paths.
- Assembly
- Cake
.Issues .dll - Namespace
- Cake
.Issues - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["StringPathExtensions"]
class Type type-node
Syntax
public static class StringPathExtensions
Methods
Name | Value | Summary |
---|---|---|
IsFullPath |
bool |
Checks if a string containing a path is a full path.
static
|
IsInRepository |
bool |
Checks if a file is part of the repository.
static
|
IsSubpathOf |
bool |
Checks if a path is a sub path of another path.
The comparison is case-insensitive, handles
/ and \ slashes as folder separators and
only matches if the base dir folder name is matched exactly
(c:\foobar\file.txt is not a sub path of c:\foo ).
static
|
IsValidPath |
bool |
Checks if a string containing a path is a valid path string.
static
|
Is |
ValueTuple |
Validates if a file path is a valid path below
RepositoryRoot .
static
|
Make |
string |
Make path relative to repository root.
static
|
NormalizePath |
string |
Normalize path string.
All
/ are changed to \ .
static
|
Remove |
string |
Remove the leading directory separator from a file path.
static
|
WithEnding |
string |
Returns value with the minimal concatenation of ending (starting from end) that
results in satisfying .EndsWith(ending).
static
|