Here you can find the source of mkDir(String destDir, String dirName)
public static void mkDir(String destDir, String dirName)
//package com.java2s; /**//from w ww . ja va 2 s.co m * Copyright(c) 2005 Dragonfly - created by FengChun * All Rights Reserved. * * @license: Dragonfly Common License * @date 2005-5-16 */ import java.io.File; public class Main { public static String PATH_CHAR = "" + File.separatorChar; public static void mkDir(String destDir, String dirName) { File target = new File(destDir + PATH_CHAR + dirName); if (!target.exists()) { if (!target.mkdir()) throw new RuntimeException("The Directory can't create:" + target.getPath()); } } }