Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
ToFilePathString ( |
public static CalculateRelativePath ( string fromFullPath, string toFullPath ) : string | ||
fromFullPath | string | Path with which to make |
toFullPath | string | Absolute path |
Результат | string |
public static EscapeFileName ( string unescapedName ) : string | ||
unescapedName | string | |
Результат | string |
public static ForceDirectoryEnding ( string str ) : string | ||
str | string | |
Результат | string |
public static IsPathRootedUnderRoot ( string path, string rootDirectory ) : bool | ||
path | string | |
rootDirectory | string | |
Результат | bool |
public static ResolveRelativePath ( string relativePath, string resolutionRootFullPath ) : string | ||
relativePath | string | Relative path to resolve |
resolutionRootFullPath | string | Root full path for the resolution of |
Результат | string |