Java Create Directory mkdirIfMissing(File dir)

Here you can find the source of mkdirIfMissing(File dir)

Description

mkdir If Missing

License

Open Source License

Declaration

private static Boolean mkdirIfMissing(File dir) 

Method Source Code


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

import java.io.*;

public class Main {
    private static Boolean mkdirIfMissing(File dir) {
        return !dir.exists() && dir.mkdir();
    }/*  w  ww .  j a  va  2 s  .  co  m*/
}

Related

  1. mkDir(String path)
  2. mkdir(String s)
  3. mkdir(String save)
  4. mkdir(String sFullDirName)
  5. mkDirAndFile(File file)
  6. mkdirIfNotExists(File dir)
  7. mkDirRec(File file)
  8. mkdirs(File folder)
  9. mkdirs(File outdir, String path)