/*
- * jSite - a tool for uploading websites into Freenet
- * Copyright (C) 2006 David Roden
+ * jSite - FileScanner.java - Copyright © 2006–2011 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
private void scanFiles(File rootDir, List<String> fileList) throws IOException {
File[] files = rootDir.listFiles(new FileFilter() {
+ @SuppressWarnings("synthetic-access")
public boolean accept(File file) {
- return !file.isHidden();
+ return !project.isIgnoreHiddenFiles() || !file.isHidden();
}
});
if (files == null) {