code: public static void createDirectory( File directory ) throws IOException {
  
  		if( ! directory.exists()
  				&& ! directory.mkdirs())
  			throw new IOException( "The directory " + directory + " could not be created." );
  	}
docs: Creates a directory if it does not exist.
  @param directory the directory to create
  @throws IOException if it did not exist and that it could not be created