Microsoft SDK for Java

File.isDirectory

Determines whether the specified path refers to a directory.

Syntax

public static boolean isDirectory( String path )

Parameters

path

The path to test.

Return Value

Returns true if the path refers to a directory; otherwise, returns false.

See Also   exists, isFile

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