public class FileUtils
extends java.lang.Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.lang.String fromFileName,
java.lang.String toFileName)
Copy files
|
static void |
deletePath(java.io.File dirPath)
Utilities for Files.
|
static void |
recursiveDelete(java.io.File dirPath)
Utilities for Files.
|
public static void recursiveDelete(java.io.File dirPath)
Utilities for Files. Deletes recursively all the files and directories contained in a given path
dirPath
- Path to delete all the files contained in itpublic static void deletePath(java.io.File dirPath)
Utilities for Files. Deletes recursively all the files and directories contained in a given path and also the path
dirPath
- Path to delete all the files contained in itpublic static void copy(java.lang.String fromFileName, java.lang.String toFileName) throws java.io.IOException
Copy files
fromFileName
- From file nametoFileName
- Target file namejava.io.IOException