public class FileUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isWindows |
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
delete(java.lang.String path)
Recursively delete file/directory
|
static void |
deleteLater(java.lang.String path)
Actually deletes a file or schedules its deletion.
|
static void |
makeTemporary(java.io.File f) |
static void |
makeTemporary(java.lang.String path)
Windows-only.
|
static void |
remove(java.lang.String path)
Actually deletes a file or renames it to temp name and schedules its deletion.
|
public static void delete(java.lang.String path) throws java.io.IOException
java.io.IOException
public static void remove(java.lang.String path) throws java.io.IOException
java.io.IOException
public static void deleteLater(java.lang.String path) throws java.io.IOException
java.io.IOException
public static void makeTemporary(java.lang.String path)
public static void makeTemporary(java.io.File f)