Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.isFolder
Verifies the existence of a folder (directory).
Syntax
public static final int isFolder(String path)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 agoodString()
and then converts it usingosSafeSpec()
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:
String Property = "CS.Property.cs.pagecachefolder"; String path = ics.ResolveVariables(Property); if ( Utilities.isFolder ( path ) == 0 ) { // process the folder }See Also
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.