@Override
	  public boolean accept(File directory, String filename) {
		    boolean fileOK = true;
	
		    if (extension != null) {
		      fileOK = filename.toLowerCase().endsWith('.' + extension.toLowerCase());
		    }
		    return fileOK;
	  }