Java Directory Create mkDir(File file)

Here you can find the source of mkDir(File file)

Description

mk Dir

License

Open Source License

Declaration

private static void mkDir(File file) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {

    private static void mkDir(File file) {
        if (file.getParentFile().exists()) {
            file.mkdir();/* ww  w .ja v a  2  s.co  m*/
        } else {
            mkDir(file.getParentFile());
            file.mkdir();
        }
    }
}

Related

  1. mkdir(File directory)
  2. mkdir(File dirFile)
  3. mkdir(File dirFile)
  4. mkdir(File f)
  5. mkdir(File f)
  6. mkdir(File file)
  7. mkdir(File file)
  8. mkdir(File parent, String... segments)
  9. mkdir(File parentDir, String name)