Java Path Create nio createDirectory(Path path)

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

Description

create Directory

License

Apache License

Declaration

public static void createDirectory(Path path) throws IOException 

Method Source Code


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

import java.io.IOException;

import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void createDirectory(Path path) throws IOException {
        if (Files.notExists(path)) {
            Files.createDirectory(path);
        }/*from   w ww . j a v a2  s  .  c o  m*/
    }
}

Related

  1. createClassWithDepsNextExtra(int index, Path dir)
  2. createDir(Path p)
  3. createDirectoriesIfRequired(@Nonnull Path path)
  4. createDirectory(final Path parent, final String folderName)
  5. createDirectory(Path parent, String name)
  6. createDirIfDoesNotExist(String websitesDirPath)
  7. createEmptyResourceFile(Path path)
  8. createFile(File root, String path, String filename, String value)
  9. createFile(final Path file, final String line)