public final class UtilFolder extends Object
This class is Thread-Safe.
Modifier and Type | Method and Description |
---|---|
static void |
deleteDirectory(File element)
Delete a directory and all of its content (be careful, it will erase all children, including child directory).
|
static List<File> |
getDirectories(File path)
Get all directories existing in the path.
|
static String |
getPath(String... path)
Construct a usable path using a list of string, automatically separated by the portable separator.
|
static String |
getPathSeparator(String separator,
String... path)
Construct a usable path using a list of string, automatically separated by the portable separator.
|
static boolean |
isDirectory(String path)
Check if the path is a directory.
|
public static List<File> getDirectories(File path)
path
- The path to check.public static String getPath(String... path)
path
- The list of directories (if has) and file.public static String getPathSeparator(String separator, String... path)
separator
- The separator to use.path
- The list of directories (if has) and file.public static void deleteDirectory(File element)
element
- The directory to delete with all of its content.public static boolean isDirectory(String path)
path
- The path to check.true
if it is a directory, false
else.Copyright © 2017 Byron 3D Games Studio. All rights reserved.