Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.huguesjohnson
Class FileDelete

    java.lang.Object
      com.huguesjohnson.FileDelete

    public abstract class FileDelete

extends java.lang.Object

FileDelete - utility class to delete files and directories

Author:
  Hugues Johnson

Constructor Summary
`FileDelete()`

Method Summary
`static boolean` | `deleteDirectory(java.lang.String directoryPath)` Recursively delete a directory.
`static boolean` | `deleteFile(java.lang.String filePath)` Delete a file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileDelete

    public FileDelete()

Method Detail

### deleteFile

    public static final boolean deleteFile(java.lang.String filePath)

  Delete a file.

  Parameters:
    `filePath` - The file to delete.
  Returns:
    True if the operation is successful.

### deleteDirectory

    public static final boolean deleteDirectory(java.lang.String directoryPath)

  Recursively delete a directory.

  Parameters:
    `directoryPath` - The directory to delete.
  Returns:
    True if the operation is successful.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD