Java Utililty Methods mkdir

List of utility methods to do mkdir

Description

The list of methods to do mkdir are organized into topic(s).

Method

booleanmakeDir(String dirPath)
Make directory base on the specified path
if (dirPath == null || dirPath.trim().equals("")) {
    return false;
File dir = new File(dirPath);
if (!dir.exists())
    return dir.mkdirs();
else
    return true;
...
booleanmakeDir(String newDirName)
make Dir
if (fileExists(newDirName))
    return true;
File dir = new File(newDirName);
return dir.mkdir();
voidmakeDir(String parent, String child)
create directory method
StringBuffer mkdir = new StringBuffer(parent);
mkdir.append(fileseperator);
mkdir.append(child);
makeDir(mkdir.toString());
booleanmakeDir(String path)
make Dir
return new File(path).mkdirs();
FilemakeDir(String path)
make Dir
File dir = null;
if (path != null) {
    dir = new File(path);
    if (!dir.exists()) {
        dir.mkdirs();
return dir;
...
booleanmakeDirByChild(File file)
make Dir By Child
File parent = file.getParentFile();
if (parent != null) {
    return parent.mkdirs();
return false;
voidmakeDirDirs(String dir)
If the path to the specified DIRECTORY does not yet exist, make all the directories up to it.
File f = new File(dir);
if (!f.exists())
    f.mkdirs();
voidmakeDirectories(final File file)
Make all nonexistent directories.
File parent = file.getParentFile();
if (parent != null) {
    parent.mkdirs();
voidmakeDirectories(final String location)
Makes the directory for the given location if it doesn't exist.
final File file = new File(location);
makeDirectories(file);
voidmakeDirectories(JarFile jar, String eviwareDir)
make Directories
Enumeration entries = jar.entries();
while (entries.hasMoreElements()) {
    JarEntry file = (JarEntry) entries.nextElement();
    File f = new File(eviwareDir + File.separator + file.getName());
    if (file.isDirectory()) { 
        f.mkdir();