Android Utililty Methods Directory Check

List of utility methods to do Directory Check

Description

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

Method

booleancheckDirectory(String dir)
check Directory
File dirObj = new File(dir);
if (dirObj.exists()) {
    if (!dirObj.isDirectory()) {
        dirObj.delete();
    return false;
if (!dirObj.exists()) {
...
voidcheckDirectory(String directory)
check Directory
File f = new File(directory);
if (!f.isDirectory()) {
    f.mkdirs();