Microsoft SDK for Java

isRoot

This method of the Path Class determines whether the path string is a root path. For example, the following strings are root paths: "\", "c:\", "\\server\", and "\\server\share".

Syntax

public static boolean isRoot(String stPath);

Return Value

Returns true if the path string is a root path; otherwise, returns false.

Parameters

stPath The path string.

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