Here you can find the source of mkDir(String DirectoryName)
public static boolean mkDir(String DirectoryName)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static boolean mkDir(String DirectoryName) { boolean bRet = false; java.io.File file = new java.io.File(DirectoryName); if (!file.exists() && file.mkdirs()) { bRet = true;// w w w . j ava 2 s. c o m } return bRet; } public static void mkdirs(String destDir) { File dir = new File(destDir); if (!dir.exists()) { dir.mkdirs(); } } }