class Files {

    public static boolean isDirectory(final Path path,
                                      final LinkOption... options)
            throws IllegalArgumentException, SecurityException {
        checkNotNull("path",
                     path);

        try {
            return readAttributes(path,
                                  BasicFileAttributes.class,
                                  options).isDirectory();
        } catch (IOException ioe) {
        }
        return false;
    }

    private  Files();

}