public abstract class FileUtils
extends java.lang.Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanDirectory(java.io.File directory)
Clean directory.
|
static void |
deleteDirectory(java.io.File directory)
Recursively delete directory.
|
static boolean |
deleteQuietly(java.io.File file)
Delete file / directory and its sub-directories without throwing an exception.
|
static void |
forceDelete(java.io.File file)
Fore delete of a file / directory.
|
public static void deleteDirectory(java.io.File directory) throws java.io.IOException
directory
- java.io.IOException
public static void forceDelete(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public static void cleanDirectory(java.io.File directory) throws java.io.IOException
directory
- java.io.IOException
public static boolean deleteQuietly(java.io.File file)
file
- This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.