Java mkdir makeDir(File file)

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

Description

make Dir

License

Open Source License

Declaration

public static int makeDir(File file) 

Method Source Code


//package com.java2s;

import java.io.File;

public class Main {

    public static int makeDir(File file) {
        int rtn = 0;
        if (file.exists())
            return 0;
        if (file.isFile())
            return 0;
        if (file.isDirectory())
            return 0;
        if (!file.isDirectory())
            file.mkdirs();//w  ww .j a v a  2s  .  com
        return rtn;
    }
}

Related

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