Microsoft SDK for Java

removeTrailingSlash

This method of the Path Class removes a trailing backslash unless the path is a root path.

Syntax

public static String removeTrailingSlash(String stPath);

Return Value

Returns the path string without the trailing backslash. If the path is a root path, it remains unchanged.

Parameters

stPath The path string.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.