Android Directory Check checkDirectory(String directory)

Here you can find the source of checkDirectory(String directory)

Description

check Directory

Declaration

private static void checkDirectory(String directory) 

Method Source Code

//package com.java2s;
import java.io.File;

public class Main {
    private static void checkDirectory(String directory) {
        File f = new File(directory);

        if (!f.isDirectory()) {
            f.mkdirs();/*from   ww w  .j a v a 2s . c om*/
        }
    }
}

Related

  1. checkDirectory(String dir)