private boolean ensureDirectoryExists(File directory){
  if (!directory.exists()) {
    if (!queryYesNoQuestion(N4ExportMessages.DataTransfer_createTargetDirectory)) {
      return false;
    }
    if (!directory.mkdirs()) {
      displayErrorDialog(N4ExportMessages.DataTransfer_directoryCreationError);
      giveFocusToDestination();
      return false;
    }
  }
  return true;
}

private boolean ensureDirectoryExists ( File directory ) { if ( ! directory . exists ( ) ) { if ( ! queryYesNoQuestion ( N4ExportMessages . DataTransfer_createTargetDirectory ) ) { return false ; } if ( ! directory . mkdirs ( ) ) { displayErrorDialog ( N4ExportMessages . DataTransfer_directoryCreationError ) ; giveFocusToDestination ( ) ; return false ; } } return true ; }
attempts to ensure that the specified directory exists on the local file system . answers a boolean indicating success .
