Method | Description | |
---|---|---|
CalculateRelativePath ( string fromFullPath, string toFullPath ) : string |
Compute the path of toFullPath, relative to fromFullPath.
|
|
EscapeFileName ( string unescapedName ) : string |
Replace all invalid file path characters with the underscore ("_").
|
|
ForceDirectoryEnding ( string str ) : string |
Append a Path.DirectorySeparatorChar to the end of the string if one does not already exist.
|
|
IsPathRootedUnderRoot ( string path, string rootDirectory ) : bool |
Gets whether or not the given path has exists under the given rootDirectory.
|
|
ResolveRelativePath ( string relativePath, string resolutionRootFullPath ) : string |
Resolve a relative path against the given root path.
|
Method | Description | |
---|---|---|
ToFilePathString ( |
public static CalculateRelativePath ( string fromFullPath, string toFullPath ) : string | ||
fromFullPath | string | Path with which to make |
toFullPath | string | Absolute path |
return | string |
public static EscapeFileName ( string unescapedName ) : string | ||
unescapedName | string | |
return | string |
public static ForceDirectoryEnding ( string str ) : string | ||
str | string | |
return | string |
public static IsPathRootedUnderRoot ( string path, string rootDirectory ) : bool | ||
path | string | |
rootDirectory | string | |
return | bool |
public static ResolveRelativePath ( string relativePath, string resolutionRootFullPath ) : string | ||
relativePath | string | Relative path to resolve |
resolutionRootFullPath | string | Root full path for the resolution of |
return | string |