Method TrimEndDirectorySeparator
TrimEndDirectorySeparator(string?)
Removes a DirectorySeparatorChar and AltDirectorySeparatorChar characters from the end of the specified string.
public static string? TrimEndDirectorySeparator(string? path)
Parameters
path
stringPath to be trimmed.
Returns
- string
Trimmed string.