Here you can find the source of mkdirs(Path path)
public static boolean mkdirs(Path path)
//package com.java2s; //License from project: Apache License import java.nio.file.Files; import java.nio.file.Path; public class Main { public static boolean mkdirs(Path path) { try {// w ww .ja v a 2 s . c om Files.createDirectories(path); return true; } catch (Exception e) { return false; } } }