Java Directory Create nio mkdirs(Path path)

Here you can find the source of mkdirs(Path path)

Description

mkdirs

License

Apache License

Declaration

public static boolean mkdirs(Path path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.nio.file.Files;

import java.nio.file.Path;

public class Main {
    public static boolean mkdirs(Path path) {
        try {// w  ww  .ja  v  a 2 s  . c  om
            Files.createDirectories(path);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

  1. mkdir(final File dir)
  2. mkdir(final File dir)
  3. mkdirs(Path dir, FileAttribute... attrs)
  4. mkdirs(Path path)
  5. mkPath(Path nf)