Android Directory Create mkdir(File path)

Here you can find the source of mkdir(File path)

Description

Creates the directories in the specified path.

Declaration

public static File mkdir(File path) 

Method Source Code

import java.io.*;
import java.nio.channels.*;

public class Main{
    /**//from ww w  . j  a  va  2s  .com
     * Creates the directories in the specified path.
     */
    public static File mkdir(File path) {
        assertNotNull("path", path);
        if (path.mkdirs()) {
            LOGGER.trace.log("Created directory: ", path.getPath());
        }
        return path;
    }
    /**
     * Creates the directories in the specified path.
     */
    public static String mkdir(String path) {
        mkdir(new File(path = assertNotEmpty("path", path)));
        return path;
    }
}

Related

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