Here you can find the source of makeDirectory(File directory)
public static void makeDirectory(File directory)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void makeDirectory(File directory) { if (!directory.exists() && !directory.mkdirs()) { throw new RuntimeException(String.format("Directory %s can not be created", directory)); }/*from w w w . jav a 2 s. c o m*/ } }