From: David ‘Bombe’ Roden Date: Fri, 1 Jan 2010 19:57:34 +0000 (+0100) Subject: Honor “ignore-hidden-files” property in file scanner. X-Git-Tag: 0.9~40 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=261a085c7923741f825d0908f6d7634a69f8a89c;p=jSite.git Honor “ignore-hidden-files” property in file scanner. --- diff --git a/src/de/todesbaum/jsite/gui/FileScanner.java b/src/de/todesbaum/jsite/gui/FileScanner.java index bca7d64..8ef1340 100644 --- a/src/de/todesbaum/jsite/gui/FileScanner.java +++ b/src/de/todesbaum/jsite/gui/FileScanner.java @@ -142,8 +142,9 @@ public class FileScanner implements Runnable { private void scanFiles(File rootDir, List 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) {