Java mkdir makeDirs(final File file)

Here you can find the source of makeDirs(final File file)

Description

make Dirs

License

LGPL

Declaration

public static boolean makeDirs(final File file) 

Method Source Code


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

import java.io.File;

public class Main {
    public static boolean makeDirs(final File file) {
        if (notExists(file)) {
            return file.mkdirs();
        }//  ww w .  j  a  va  2 s.  c  om
        return false;
    }

    public static boolean notExists(final File file) {
        return file == null || !file.exists();
    }

    public static boolean exists(final File file) {
        return file != null && file.exists();
    }
}

Related

  1. makeDirRecursive(File f)
  2. makeDirs(@Nullable File dir)
  3. makeDirs(File dir, int numTries)
  4. makeDirs(File f)
  5. makeDirs(File file)
  6. makeDirs(String dir)
  7. makeDirs(String fileName)
  8. makedirs(String fileName)
  9. makeDirs(String fileName, boolean hasFile)