Java mkdir makeDirectory(String dirPath)

Here you can find the source of makeDirectory(String dirPath)

Description

make Directory

License

Open Source License

Declaration

public synchronized static boolean makeDirectory(String dirPath) 

Method Source Code

//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;
    }
}

Related

  1. makeDirectory(final CharSequence aPath)
  2. makeDirectory(final File file, final String extension)
  3. makeDirectory(String directory)
  4. makeDirectory(String directoryName)
  5. makeDirectory(String directoryPath)
  6. MakeDirectory(String name)
  7. makeDirectory(String name)
  8. makeDirectory(String newDirString)
  9. makeDirectory(String outputDirectory, String directoryName)