Here you can find the source of mkDir(String path)
public static boolean mkDir(String path)
//package com.java2s; import java.io.File; public class Main { public static boolean mkDir(String path) { File file = new File(path); if (!file.exists()) { if (!file.mkdirs()) { return false; }// w ww . ja v a 2 s. co m } return true; } }