Java tutorial
//package com.java2s; import java.io.File; public class Main { /** * Create directory with path string */ public static boolean createDirectory(String path) { File directory = new File(path); return directory.exists() || directory.mkdir(); } }