Java Path Exist nio directoryExist(String path)

Here you can find the source of directoryExist(String path)

Description

directory Exist

License

Apache License

Parameter

Parameter Description
path a parameter

Return

True if the directory $path exist. False otherwise

Declaration

public static boolean directoryExist(String path) 

Method Source Code

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

import java.nio.file.Files;
import java.nio.file.Paths;

public class Main {
    /**/*from  w ww . ja v a2 s  .  co m*/
     * @param path
     * @return True if the directory $path exist. False otherwise
     */
    public static boolean directoryExist(String path) {
        return Files.isDirectory(Paths.get(path));
    }
}

Related

  1. checkFileExists(Path path, LinkOption... options)
  2. checkFileExists(String path)
  3. checkPathExistence(String path)
  4. ensureDirectoryExists(final Path fileLocation)
  5. exist(Path... paths)
  6. exists(Path file)
  7. exists(Path path)