public static void createPath(String path,boolean mustCreate) throws IOException {
  File fpath=new File(path);
  if (fpath.exists() && mustCreate)   throw new IOException(path + " already exists");
 else   if (!fpath.mkdirs())   throw new IOException("cannot create path: " + path);
}

public static void createPath ( String path , boolean mustCreate ) throws IOException { File fpath = new File ( path ) ; if ( fpath . exists ( ) && mustCreate ) throw new IOException ( path + " already exists" ) ; else if ( ! fpath . mkdirs ( ) ) throw new IOException ( "cannot create path: " + path ) ; }
create a directory path
