Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.ensureFolder
Makes sure a folder exists, creating subfolders as needed.
Syntax
static final boolean ensureFolder(String path)Parameters
path
- The path to and name of the folder you want to check.
Returns
Returns
true
if the folder exists.Example
The following example first retrieves a property from
futuretense.ini
and then uses that property's value to determine whether that directory exists:
String sTempHome = ics.GetProperty("ft.home"); if(Utilities.ensureFolder(sTempHome)) { // Yes, the folder exists. } else { // The folder does not exist. }See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.