Here you can find the source of makeDirectory(String dirPath)
public synchronized static boolean makeDirectory(String dirPath)
//package com.java2s; /**/* ww w.j a va 2s . c o m*/ * Copyright (c) 2015 SK holdings Co., Ltd. All rights reserved. * This software is the confidential and proprietary information of SK holdings. * You shall not disclose such confidential information and shall use it only in * accordance with the terms of the license agreement you entered into with SK holdings. * (http://www.eclipse.org/legal/epl-v10.html) */ import java.io.File; public class Main { public synchronized static boolean makeDirectory(String dirPath) { boolean isOk = true; File file = new File(dirPath); if (!file.exists()) { isOk = file.mkdirs(); } return isOk; } }