Here you can find the source of makeDir(File file)
public static int makeDir(File file)
//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; } }