Class PathHelper
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
public static class PathHelper
- Inheritance
-
PathHelper
- Inherited Members
Fields
DirectorySeparator
The/universal/standard/directory/seperator.
public const char DirectorySeparator = '/'
Field Value
Methods
GetRelativePath(string, string)
Returns a path relative to the base path.
public static string GetRelativePath(string basePath, string path)
Parameters
basePath
stringThe path to make relative to. Must end with directory seperator.
path
stringThe path to be made relative to the basePath.
Returns
- string
The relative path or the original string if it is not absolute or cannot be made relative.
Normalize(string)
Returns a path string normalized to the/universal/standard.
public static string Normalize(string path)
Parameters
path
string
Returns
NormalizeDirectory(string)
Returns a directory path string normalized to the/universal/standard with a trailing seperator.
public static string NormalizeDirectory(string path)
Parameters
path
string
Returns
NormalizeWindows(string)
Returns a path string normalized to the\Windows\standard.
public static string NormalizeWindows(string path)
Parameters
path
string