public abstract class FileSystemUtils
extends java.lang.Object
Constructor and Description |
---|
FileSystemUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyRecursively(java.io.File src,
java.io.File dest)
Recursively copy the contents of the
src file/directory
to the dest file/directory. |
static boolean |
deleteRecursively(java.io.File root)
Delete the supplied
File - for directories,
recursively delete any nested directories or files as well. |
private static void |
doCopyRecursively(java.io.File src,
java.io.File dest)
Actually copy the contents of the
src file/directory
to the dest file/directory. |
public static boolean deleteRecursively(java.io.File root)
File
- for directories,
recursively delete any nested directories or files as well.root
- the root File
to deletetrue
if the File
was deleted,
otherwise false
public static void copyRecursively(java.io.File src, java.io.File dest) throws java.io.IOException
src
file/directory
to the dest
file/directory.src
- the source directorydest
- the destination directoryjava.io.IOException
- in the case of I/O errorsprivate static void doCopyRecursively(java.io.File src, java.io.File dest) throws java.io.IOException
src
file/directory
to the dest
file/directory.src
- the source directorydest
- the destination directoryjava.io.IOException
- in the case of I/O errors