Android Directory Create mkDir(String path)

Here you can find the source of mkDir(String path)

Description

mk Dir

Declaration

public static boolean mkDir(String path) 

Method Source Code

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

public class Main {
    public static boolean mkDir(String path) {
        File file = new File(path);
        if (!file.exists()) {
            if (!file.mkdirs()) {
                return false;
            }// w  ww .  ja  v a 2  s.  co  m
        }
        return true;
    }
}

Related

  1. isParentDirectoryCreationRequired(File file)
  2. join(String dir, String subDir)
  3. makeDirs(File f)
  4. makehome(String home)
  5. mkDir(String dirName)
  6. mkdir(File path)
  7. mkdir(String filePath)
  8. mkdir(String path)
  9. mkdir(String s)