Here you can find the source of mkdirs(File f)
Parameter | Description |
---|---|
f | The file. |
public static void mkdirs(File f)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { /**/*from w ww. j a v a 2 s.c o m*/ * Makes sure that the directory in which the file is exists. * If this one doesn't exist, i'll be created. * * @param f The file. */ public static void mkdirs(File f) { File p = f.getParentFile(); if (!p.exists()) p.mkdirs(); } }