Here you can find the source of mkdir(String path)
Parameter | Description |
---|---|
path | a parameter |
public static void mkdir(String path)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { /**/*from ww w .j av a 2 s.c o m*/ * make a new directory * @param path */ public static void mkdir(String path) { File file = new File(path); if (!file.exists()) { file.mkdirs(); } else { System.err.println("File " + path + " exists already!"); } } }