public final class DirectoryIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyDirectory(File srcDir,
File destDir)
Copy a directory, including only those that are visible.
|
static void |
createDir(File dir)
Create a directory.
|
static void |
recursivelyDeleteDirectory(File dir)
Will do a recursive deletion of all files and folders based off of a
given directory.
|
public static void copyDirectory(File srcDir, File destDir) throws IOException
srcDir - the directory to copy fromdestDir - the directory to copy toIOException - if there are any problems copying the directorypublic static void createDir(File dir) throws IOException
dir - the directory that you want to create.IOException - If the file exists or the system is unable to make the
directoriespublic static void recursivelyDeleteDirectory(File dir) throws IOException
dir - The directory to start the deletingIOException - If exception occurs during the actual delete or if it is not
a directoryCopyright © 2015. All Rights Reserved.