This method of the Path Class removes a trailing backslash unless the path is a root path.
public static String removeTrailingSlash(String stPath);
Returns the path string without the trailing backslash. If the path is a root path, it remains unchanged.
stPath | The path string. |