|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.cask.common.DirUtils
public final class DirUtils
Copied from Google Guava as these methods are now deprecated.
| Method Summary | |
|---|---|
static File |
createTempDir(File baseDir)
Creates a temp directory inside the given base directory. |
static void |
deleteDirectoryContents(File directory)
Wipes out all the a directory starting from a given directory. |
static boolean |
mkdirs(File dir)
Creates a directory if the directory doesn't exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void deleteDirectoryContents(File directory)
throws IOException
directory - to be cleaned
IOExceptionpublic static File createTempDir(File baseDir)
IllegalStateException - if the directory could not be createdpublic static boolean mkdirs(File dir)
dir - The directory to create
true if the directory exists or successfully created the directory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||