Here you can find the source of mkDir(final String folderPath)
Parameter | Description |
---|---|
String | folderPath |
public static void mkDir(final String folderPath)
//package com.java2s; /*/*from w ww . j a v a2 s . c o m*/ * JLib - Publicitas Java library v1.2.0. * * Copyright (c) 2005, 2006, 2007, 2008, 2009 Publicitas SA. * Licensed under LGPL (LGPL-LICENSE.txt) license. */ import java.io.File; public class Main { /** * Check if a folder path exists in the file system * If not, create it * @param String folderPath */ public static void mkDir(final String folderPath) { final File file = new File(folderPath); if (!file.exists()) { file.mkdirs(); } } }