public final class DirUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void deleteDirectoryContents(File directory) throws IOException
directory - to be cleanedIOExceptionpublic static File createTempDir(File baseDir)
IllegalStateException - if the directory could not be createdpublic static boolean mkdirs(File dir)
dir - The directory to createtrue if the directory exists or successfully created the directory.Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.