class Directory implements Serializable {

  public void delete() throws DirectoryException {
    if (!getFile().delete()) {
      throw new DirectoryException("Could not delete '" + getFile() + "'");
    }
  }

  public  Directory();
  public  Directory(final File directory);

}