Table of Contents

Class PathHelper

Namespace
MonoGame.Framework.Content.Pipeline.Builder
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

char

Methods

GetRelativePath(string, string)

Returns a path relative to the base path.

public static string GetRelativePath(string basePath, string path)

Parameters

basePath string

The path to make relative to. Must end with directory seperator.

path string

The 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

string

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

string

NormalizeWindows(string)

Returns a path string normalized to the\Windows\standard.

public static string NormalizeWindows(string path)

Parameters

path string

Returns

string