Java Directory Create mkdirs(File directory, String string)

Here you can find the source of mkdirs(File directory, String string)

Description

mkdirs

License

Open Source License

Declaration

public static File mkdirs(File directory, String string) 

Method Source Code


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

import java.io.File;

public class Main {
    public static File mkdirs(File directory, String string) {
        File path = new File(directory, string);
        mkdirs(path);/*w w w. j  a va 2s. c om*/
        return path;
    }

    public static void mkdirs(File path) {
        if (!path.exists() && !path.mkdirs()) {
            throw new RuntimeException("Could not create directory: " + path.getAbsolutePath());
        }
    }
}

Related

  1. mkdirs(File dir)
  2. mkdirs(File dir)
  3. mkdirs(File directory)
  4. mkdirs(File directory)
  5. mkdirs(File directory)
  6. mkdirs(File dirs)
  7. mkdirs(File dumpFile)
  8. mkdirs(File f)
  9. mkDirs(File f)