Java Create Directory mkdirs(final File outdir, final String path)

Here you can find the source of mkdirs(final File outdir, final String path)

Description

Creates directories from an existing file to an additional path.

License

Apache License

Parameter

Parameter Description
outdir Existing directory
path Additional path

Declaration

public static void mkdirs(final File outdir, final String path) 

Method Source Code

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

import java.io.File;

public class Main {
    /**/*  w  w w.java 2s  .c o m*/
     * Creates directories from an existing file to an additional path.
     * @param outdir Existing directory
     * @param path Additional path
     */
    public static void mkdirs(final File outdir, final String path) {
        File d = new File(outdir, path);
        if (!d.exists()) {
            d.mkdirs();
        }
    }
}

Related

  1. mkdirs(File path)
  2. mkdirs(final File aDirectory)
  3. mkdirs(final File dirs)
  4. mkdirs(final File f)
  5. mkdirs(final File file)
  6. mkdirs(final String path)
  7. mkdirs(final String path)
  8. mkdirs(String destDir)
  9. mkdirs(String destination)