public static boolean validateOutputDirectory(File directory){
  if (directory.exists()) {
    Diagnostic.error(ErrorType.DIRECTORY_EXISTS,directory.getPath());
    return false;
  }
  return true;
}

public static boolean validateOutputDirectory ( File directory ) { if ( directory . exists ( ) ) { Diagnostic . error ( ErrorType . DIRECTORY_EXISTS , directory . getPath ( ) ) ; return false ; } return true ; }
test if the supplied directory already exists .
