Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string StripTrailingSeparator(string)

Declaration

public static string StripTrailingSeparator(
    string path
)

Summary

Strips a single trailing directory separator, whether it's the forward- or backslash. Preserves the single separator at the end of paths referring to the root of a drive, such as "C:\". Removes at most a single separator, never more.