html-convert/src/main/java/org/netbeans/tools/tutorials/HTMLConverter.java [188:202]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static void checkDirectoryExists(String message, File dir) throws Exception {
        String error = null;
        if (!dir.exists()) {
            error = String.format("%s '%s' does not exist.", message, dir.getAbsolutePath());
        }
        if (error == null && !dir.isDirectory()) {
            error = String.format("%s '%s' is not a directory.", message, dir.getAbsolutePath());
        }
        if (error == null && !dir.canRead()) {
            error = String.format("%s '%s' is not readable.", message, dir.getAbsolutePath());
        }
        if (error != null) {
            throw new IllegalArgumentException(error);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tutorials-convert/src/main/java/org/netbeans/tools/tutorials/HTMLConverter.java [196:210]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static void checkDirectoryExists(String message, File dir) throws Exception {
        String error = null;
        if (!dir.exists()) {
            error = String.format("%s '%s' does not exist.", message, dir.getAbsolutePath());
        }
        if (error == null && !dir.isDirectory()) {
            error = String.format("%s '%s' is not a directory.", message, dir.getAbsolutePath());
        }
        if (error == null && !dir.canRead()) {
            error = String.format("%s '%s' is not readable.", message, dir.getAbsolutePath());
        }
        if (error != null) {
            throw new IllegalArgumentException(error);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



