Java Create Directory mkdir(String path)

Here you can find the source of mkdir(String path)

Description

mkdir

License

MIT License

Declaration

public static void mkdir(String path) 

Method Source Code


//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();
    }
}

Related

  1. mkdir(String mkdirName)
  2. mkdir(String name)
  3. mkdir(String name)
  4. mkdir(String name, File dir)
  5. mkdir(String path)
  6. mkDir(String path)
  7. mkdir(String s)
  8. mkdir(String save)
  9. mkdir(String sFullDirName)