Java tutorial
//package com.java2s; import java.io.File; public class Main { private static void dirChecker(String rootDir, String dir) { File f = new File(rootDir + "/" + dir); if (!f.isDirectory()) { f.mkdirs(); } } }