I work with the Java FileSystem and i will know is the File a Directory, but i get every time a NullPointerException.
Path path = Paths.get("C:/dev");
System.out.println(Files.isDirecory(path, null);
I work with the Java FileSystem and i will know is the File a Directory, but i get every time a NullPointerException.
Path path = Paths.get("C:/dev");
System.out.println(Files.isDirecory(path, null);
 
    
    It is enough :
System.out.println(Files.isDirectory(path));
The second argument is an optional vargs indicating how symbolic links are handled.
Providing it null and getting a NullPointerException seems related. 
 
    
    You have spell error in your code. Here it is :
public static void main(String[] args) {
        Path path = Paths.get("C:/dev");
        System.out.println(Files.isDirectory(path, null);
    }
You spell wrong isDirectory
