Here you can find the source of isFolder(Path path)
Parameter | Description |
---|---|
path | the path to the file to test. |
public static boolean isFolder(Path path)
//package com.java2s; import java.nio.file.*; public class Main { /**//from w w w .j a v a 2 s . c o m * Tests whether a file is a directory. * * @param path the path to the file to test. * @return true if the file is a directory; false if the file does not * exist, is not a directory, or it cannot be determined if the file * is a directory or not. */ public static boolean isFolder(Path path) { return Files.isDirectory(path); } }