Here you can find the source of mkdirs(File directory)
Parameter | Description |
---|---|
directory | a parameter |
public static void mkdirs(File directory)
//package com.java2s; import java.io.File; public class Main { /**/* w ww . j a va 2s.co m*/ * Method description * * * @param directory */ public static void mkdirs(File directory) { if (!directory.exists() && !directory.mkdirs()) { throw new IllegalStateException("could not create directory ".concat(directory.getPath())); } } }