Java mkdir makeDir(String dir)

Here you can find the source of makeDir(String dir)

Description

make Dir

License

Apache License

Declaration

public static void makeDir(String dir) 

Method Source Code

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

import java.io.File;

public class Main {
    public static void makeDir(String dir) {
        File folder = new File(dir);
        if (!folder.exists() || !folder.isDirectory()) {
            folder.mkdirs();// w  w  w . ja va  2 s .c o m
        }
    }
}

Related

  1. makeDir(File file)
  2. makeDir(File parentDir, String dirName)
  3. makeDir(File parentFile)
  4. makedir(String containerDir, String name)
  5. makeDir(String dir)
  6. makeDir(String dir)
  7. makeDir(String dir)
  8. MakeDir(String dirName)
  9. MakeDir(String dirpath)