make Directory - Android File Input Output

Android examples for File Input Output:Directory

Description

make Directory

Demo Code


//package com.java2s;

import java.io.File;

public class Main {
    public static boolean makeDirectory(String dirPath) {
        File file = new File(dirPath);
        return file.mkdirs() || file.isDirectory();
    }/*  w ww  .ja  v a  2 s . c  o m*/
}

Related Tutorials