public class DirectoryHelper extends Object
| Constructor and Description |
|---|
DirectoryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanupDots(String path)
Remove the .
|
static boolean |
createDirectoriesToFile(File destination)
Creates all the parents directories of the destination file.
|
static boolean |
createDirectory(String directoryPath)
Create a directory with all its parents.
|
static File |
createTemporaryDirectory(String prefix)
Create a temporary directory.
|
static List<String> |
listSubDirectoriesName(File directory)
Lists all the names of the directories in the specified location.
|
public static String cleanupDots(String path)
path - the pathpublic static boolean createDirectoriesToFile(File destination)
destination - the file that needs to have all its parents directories
createdpublic static boolean createDirectory(String directoryPath)
directoryPath - the absolute pathpublic static File createTemporaryDirectory(String prefix)
prefix - The prefix string to be used in generating the dir's name;
must be at least three characters longCopyright © 2012. All Rights Reserved.