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
basePathstringThe path to make relative to. Must end with directory seperator.
pathstringThe 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
pathstring
Returns
NormalizeDirectory(string)
Returns a directory path string normalized to the/universal/standard with a trailing seperator.
public static string NormalizeDirectory(string path)
Parameters
pathstring
Returns
NormalizeWindows(string)
Returns a path string normalized to the\Windows\standard.
public static string NormalizeWindows(string path)
Parameters
pathstring