Here you can find the source of makeDirs(final File file)
public static boolean makeDirs(final File file)
//package com.java2s; //License from project: LGPL import java.io.File; public class Main { public static boolean makeDirs(final File file) { if (notExists(file)) { return file.mkdirs(); }// ww w . j a va 2 s. c om return false; } public static boolean notExists(final File file) { return file == null || !file.exists(); } public static boolean exists(final File file) { return file != null && file.exists(); } }