Java tutorial
//package com.java2s; import java.io.File; public class Main { public static void checkDir(String dirPath) { File dir = new File(dirPath); if (!dir.exists()) { dir.mkdirs(); } } }