Here you can find the source of makeDir(String dir)
static public final boolean makeDir(String dir)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { static public final boolean makeDir(String path, boolean forFile) { return makeDir(new File(path), forFile); }//from ww w .j a va 2 s . c o m static public final boolean makeDir(File f, boolean forFile) { if (!forFile) { if (f.exists()) { return f.isDirectory(); } return f.mkdirs(); } return makeDir(f.getParentFile(), false); } static public final boolean makeDir(String dir) { return makeDir(dir, false); } }