create Dir - Java File Path IO

Java examples for File Path IO:Directory Create

Description

create Dir

Demo Code


//package com.java2s;

import java.io.File;

public class Main {
    public static boolean createDir(File dir) {
        if (dir == null)
            return false;
        if (!dir.isDirectory())
            return false;
        return dir.mkdirs();
    }/*w w w. ja v  a  2s . c  o  m*/
}

Related Tutorials