|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.io.RecursiveDelete
public class RecursiveDelete
Delete entire contents of a folder, with optional error handling.
Constructor Summary | |
---|---|
RecursiveDelete()
Instantiates a recursive deleter that will continue even if it has an error during file deletion. |
|
RecursiveDelete(boolean continue_on_error)
Instantiates a recursive deleter. |
Method Summary | |
---|---|
boolean |
deleteAll(File base)
Deletes the specified file/directory, plus any sub-directories. |
boolean |
deleteChildren(File base)
Perform recursive delete of all children of the specified directory. |
protected void |
errorHandler(File base)
Can be overridden to handle errors. |
boolean |
isContinueOnError()
Indicates if we continue despite any errors that occurred during file copying. |
void |
setContinueOnError(boolean continue_on_error)
Indicates if we continue despite any errors that occurred during file copying. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecursiveDelete()
public RecursiveDelete(boolean continue_on_error)
continue_on_error
- Indicates if we continue despite any errors that occurred during
file deletion.Method Detail |
---|
public boolean deleteAll(File base)
base
-
public boolean deleteChildren(File base)
base
-
public boolean isContinueOnError()
public void setContinueOnError(boolean continue_on_error)
continue_on_error
- protected void errorHandler(File base)
base
- The file that caused the error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |