Here you can find the source of makeDirByChild(File file)
public static boolean makeDirByChild(File file) throws IOException
//package com.java2s; //License from project: Apache License import java.io.File; import java.io.IOException; public class Main { public static boolean makeDirByChild(File file) throws IOException { File parent = file.getParentFile(); if (parent != null) { return parent.mkdirs(); }/*from www. j a v a 2s. c o m*/ return false; } }