Here you can find the source of mkdirsOrCrash(File d)
public static void mkdirsOrCrash(File d)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void mkdirsOrCrash(File d) { if (!d.exists()) d.mkdirs();/*w w w . j a v a 2 s.co m*/ if (!d.isDirectory()) throw new RuntimeException("\"" + d.getAbsolutePath() + "\" must be a directory. Aborting."); } }