Java Create Directory mkdir(String directory)

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

Description

mkdir

License

Open Source License

Declaration

public static boolean mkdir(String directory) 

Method Source Code

//package com.java2s;
/*/*from w ww .j  av a 2s . c  o m*/
 * Copyright (c) 2010, James Hanlon
 * All rights reserved.
 * 
 * Made available under the BSD license - see the LICENSE file
 */

import java.io.File;

public class Main {
    public static boolean mkdir(String directory) {
        if (!(new File(directory)).exists())
            return (new File(directory)).mkdir();
        return true;
    }
}

Related

  1. mkDir(String destDir, String dirName)
  2. mkdir(String dir)
  3. mkdir(String dir, String file)
  4. mkdir(String dir_str)
  5. mkdir(String directory)
  6. mkdir(String directory)
  7. mkDir(String DirectoryName)
  8. mkdir(String directoryName)
  9. mkdir(String dirname)