Here you can find the source of mkdir(String path)
public static void mkdir(String path)
//package com.java2s; /*/* w ww. j a va2 s.c om*/ * Copyright 2010-2011, Sikuli.org * Released under the MIT License. * */ import java.io.*; public class Main { public static void mkdir(String path) { File f = new File(path); if (!f.exists()) f.mkdir(); } public static boolean exists(String path) { File f = new File(path); return f.exists(); } }