Here you can find the source of mkdirs(final String path)
public static File mkdirs(final String path)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static File mkdirs(final String path) { final File file = new File(path); if (!file.exists()) { final File dir = new File(file.getParent()); if (!dir.exists()) { dir.mkdirs();/*ww w.j a va2 s.co m*/ } } return file; } }