Here you can find the source of makeDirectory(String sDir)
public static final void makeDirectory(String sDir) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.IOException; public class Main { public static final void makeDirectory(String sDir) throws IOException { File fDir = new File(sDir); if (!fDir.exists()) fDir.mkdirs();/*from www. j a va2 s. c o m*/ if (fDir.isFile()) { throw new java.io.IOException("The file with the same name already exists. - " + sDir); } } }