public static void ensureDirectoryExists(String path) throws IOException {
  File tmpDirectory=new File(path);
  if (!mkdirsWithRetry(tmpDirectory)) {
    throw new IOException("Failed to create directory " + tmpDirectory.getAbsolutePath());
  }
}

public static void ensureDirectoryExists ( String path ) throws IOException { File tmpDirectory = new File ( path ) ; if ( ! mkdirsWithRetry ( tmpDirectory ) ) { throw new IOException ( "Failed to create directory " + tmpDirectory . getAbsolutePath ( ) ) ; } }
ensures that the directory specified by the path exists
