org.marketcetera.util.file
Class Deleter
java.lang.Object
org.marketcetera.util.file.Deleter
public class Deleter
- extends Object
Deletes a file or directory recursively. It does not follow
symbolic links in the process.
- Since:
- 0.5.0
- Version:
- $Id: Deleter.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
|
Method Summary |
static void |
apply(File root)
Deletes the file tree rooted at the given root. |
static void |
apply(String name)
Deletes the file tree rooted at the file with the given
name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Deleter
public Deleter()
apply
public static void apply(File root)
throws I18NException
- Deletes the file tree rooted at the given root. It does not
follow symbolic links in the process. The root may be
nonexistent (or no-op).
- Parameters:
root - The root.
- Throws:
I18NException - Thrown if an I/O error occurs.
apply
public static void apply(String name)
throws I18NException
- Deletes the file tree rooted at the file with the given
name. It does not follow symbolic links in the process. The
root may be nonexistent (no-op).
- Parameters:
name - The file name.
- Throws:
I18NException - Thrown if an I/O error occurs.
Copyright © 2012. All Rights Reserved.