Here you can find the source of checkDir(String path)
public static void checkDir(String path)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static void checkDir(String path) { File file = new File(path); if (!file.exists()) { if (!file.mkdirs()) throw new RuntimeException(String.format("directory %s not create", path)); }//ww w . j a v a 2 s . c o m } }