Home > Contents > 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 > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.