PathEscaper.Escape

Static Method in PathEscaper

Declaration

public static string Escape(string path)

Description

Escapes the path.

Parameters

pathThe path to escape.

Returns

stringThe escaped path.

Overload

Declaration

public static string Escape(string path, Regex regex, string escapeCharacter)

Description

Escapes the path.

Parameters

pathThe path to escape.
regexThe escape regex to use.
escapeCharacterThe character used to replace invalid characters, e.g. "_".

Returns

stringThe escaped path.