Java Directory Create mkdirs(File dir)

Here you can find the source of mkdirs(File dir)

Description

mkdirs

License

Open Source License

Declaration

public static File mkdirs(File dir) 

Method Source Code

//package com.java2s;
/*/*from  ww  w . j  a  v a  2 s .c  o  m*/
 * Copyright (c) 2004, simontsui, Chris Leung. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html.
 */

import java.io.File;

public class Main {
    public static File mkdirs(File dir) {
        if (dir == null)
            return null;
        if (!dir.exists() && !dir.mkdirs())
            throw new RuntimeException("ERROR: mkdirs: " + dir);
        return dir;
    }
}

Related

  1. mkdirs(File dir)
  2. mkdirs(File dir)
  3. mkdirs(File dir)
  4. mkdirs(File dir)
  5. mkdirs(File dir)
  6. mkdirs(File directory)
  7. mkdirs(File directory)
  8. mkdirs(File directory)
  9. mkdirs(File directory, String string)