Table of Contents

Method NormalizePath

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

NormalizePath(string, char)

Normalize the given path to use the specified directory separator, trim the last separator and remove empty entries.

public static string NormalizePath(string path, char directorySeparator = '/')

Parameters

path string

The path to normalize.

directorySeparator char

The directory separator.

Returns

string