Honor “ignore-hidden-files” property in file scanner.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 1 Jan 2010 19:57:34 +0000 (20:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 1 Jan 2010 19:57:34 +0000 (20:57 +0100)
src/de/todesbaum/jsite/gui/FileScanner.java

index bca7d64..8ef1340 100644 (file)
@@ -142,8 +142,9 @@ public class FileScanner implements Runnable {
        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) {