Java mkdir makeDir(File file)

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

Description

Common file operators

License

Apache License

Declaration

public static boolean makeDir(File file) 

Method Source Code


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

import java.io.File;

public class Main {
    /**************************************************************************
     * /*ww  w.  j a v a  2s  .co m*/
     *                    Common file operators
     * 
     **************************************************************************/
    public static boolean makeDir(File file) {
        if (!file.exists()) {
            return file.mkdirs();
        }
        return true;
    }
}

Related

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