List of utility methods to do Directory Check
boolean | checkDirectory(String dir) check Directory File dirObj = new File(dir); if (dirObj.exists()) { if (!dirObj.isDirectory()) { dirObj.delete(); return false; if (!dirObj.exists()) { ... |
void | checkDirectory(String directory) check Directory File f = new File(directory); if (!f.isDirectory()) { f.mkdirs(); |