Summary
Extensions for
string for handling paths.
- Assembly
- Cake
.Prca .dll - Namespace
- Cake
.Prca .Issues - Base Types
-
- object
graph TD
Base0["object"]-->Type
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
|
| 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
|
| NormalizePath |
string |
Normalize path string.
All
/ are changed to \.
static
|