Java Create Directory mkDirs(String path)

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

Description

Create dirs

License

Apache License

Parameter

Parameter Description
path a parameter

Exception

Parameter Description
Exception an exception

Declaration

public static void mkDirs(String path) throws Exception 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    /**/*from  ww  w .  j  av a  2 s. co m*/
     * Create dirs
     * 
     * @param path
     * @throws Exception
     */
    public static void mkDirs(String path) throws Exception {
        (new File(path)).mkdirs();
    }
}

Related

  1. mkDirs(String filePath)
  2. mkdirs(String filePath)
  3. mkdirs(String name)
  4. mkdirs(String packageName, File root)
  5. mkdirs(String parentName, String childName)
  6. mkdirs(String path)
  7. mkdirs(String path, boolean deleteBeforeCreate)
  8. mkdirs(String path, boolean override)
  9. mkdirs(String s)