Here you can find the source of makeDirectories(String path)
public static String makeDirectories(String path)
//package com.java2s; import java.io.File; import java.io.IOException; public class Main { public static String makeDirectories(String path) { try {//from www . j a v a 2 s.c o m File file = new File(path); file.mkdirs(); return file.getCanonicalPath(); } catch (IOException e) { return null; } } }