Java Create Directory mkdir(String dir, String file)

Here you can find the source of mkdir(String dir, String file)

Description

mkdir

License

Apache License

Declaration

public static File mkdir(String dir, String file) 

Method Source Code

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

import java.io.File;

public class Main {
    public static File mkdir(String dir, String file) {
        if (dir == null)
            throw new IllegalArgumentException("dir must be not null");
        File result = new File(dir, file);
        parnetMkdir(result);/*from   ww w  . j a v a2s .  c o m*/
        return result;
    }

    public static void parnetMkdir(File outputFile) {
        if (outputFile.getParentFile() != null) {
            outputFile.getParentFile().mkdirs();
        }
    }
}

Related

  1. mkdir(final File file)
  2. mkdir(final String directory)
  3. mkDir(final String folderPath)
  4. mkDir(String destDir, String dirName)
  5. mkdir(String dir)
  6. mkdir(String dir_str)
  7. mkdir(String directory)
  8. mkdir(String directory)
  9. mkdir(String directory)