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