Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.isFolder

Verifies the existence of a folder (directory).

Syntax

Parameters

path
Input. Specify the pathname of the folder (directory) to check.

Description

The isFolder method verifies the existence of a folder (directory). It first checks that the argument is a goodString() and then converts it using osSafeSpec() before checking that the folder exists.

Returns

Returns zero (0) on success, or error code on error.

Example

The following code gets the directory assigned to the cs.pagecachefolder property and then determines if that directory exists:

See Also

goodString , osSafeSpec

 

  Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.