pathTrimEnd

fnIStr pathTrimEnd(IStr path, PathSepStyle style = PathSepStyle.native)

Removes path separators from the end of the path.