Java Utililty Methods Directory Create

List of utility methods to do Directory Create

Description

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

Method

voidmkdirs(File file)
Make the specified directory and any parent directories, throwing an exception if they could not be created.
if (file.exists()) {
    return;
if (!file.mkdirs()) {
    throw new IOException("Unable to create directory path: " + file.getPath());
intmkdirs(File folder)
mkdirs for folderName
if (folder.exists() == false) {
    if (folder.mkdirs() == false) {
        return (-1);
return (0);