Here you can find the source of mkdirs(File directory, String string)
public static File mkdirs(File directory, String string)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static File mkdirs(File directory, String string) { File path = new File(directory, string); mkdirs(path);/*w w w. j a va 2s. c om*/ return path; } public static void mkdirs(File path) { if (!path.exists() && !path.mkdirs()) { throw new RuntimeException("Could not create directory: " + path.getAbsolutePath()); } } }