public abstract class FileSystemUtils extends Object
Constructor and Description |
---|
FileSystemUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyRecursively(File src,
File dest)
Recursively copy the contents of the
src file/directory
to the dest file/directory. |
static boolean |
deleteRecursively(File root)
Delete the supplied
File - for directories,
recursively delete any nested directories or files as well. |
public static boolean deleteRecursively(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(File src, File dest) throws IOException
src
file/directory
to the dest
file/directory.src
- the source directorydest
- the destination directoryIOException
- in the case of I/O errors