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
trueif the folder exists.Example
The following example first retrieves a property from
futuretense.iniand 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 by FatWire Software
All rights reserved.