Android Directory Create mkdir(String path)

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

Description

Creates the directories in the specified path.

Declaration

public static String mkdir(String path) 

Method Source Code

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

public class Main{
    /**//  w ww .j av  a 2s. c om
     * 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. makehome(String home)
  2. mkDir(String dirName)
  3. mkDir(String path)
  4. mkdir(File path)
  5. mkdir(String filePath)
  6. mkdir(String s)
  7. mkdirs(String pathName)
  8. mkdirs(String pathName)
  9. createDir(String path, String folder)