Java mkdir makeDirectory(File directory)

Here you can find the source of makeDirectory(File directory)

Description

make Directory

License

Open Source License

Declaration

public static void makeDirectory(File directory) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static void makeDirectory(File directory) {
        if (!directory.exists() && !directory.mkdirs()) {
            throw new RuntimeException(String.format("Directory %s can not be created", directory));
        }/*from   w  w w  . jav a  2 s.  c o  m*/
    }
}

Related

  1. makeDirectories(final String location)
  2. makeDirectories(JarFile jar, String eviwareDir)
  3. makeDirectories(String path)
  4. makeDirectories(String path)
  5. makeDirectory(File dir)
  6. makeDirectory(File file)
  7. makeDirectory(File file)
  8. makeDirectory(File file)
  9. makedirectory(File outputDirectory, String directoryName)