Here you can find the source of checkDirExist(String path)
public static Boolean checkDirExist(String path)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static Boolean checkDirExist(String path) { File file = new File(path); if (!file.exists()) { file.mkdirs();//from www .java 2s.com System.out.println("Launcher.checkDirExist()#File doesn't exist, create new: " + path); return false; } return true; } }