Here you can find the source of directoryExist(String path)
Parameter | Description |
---|---|
path | a parameter |
public static boolean directoryExist(String path)
//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)); } }