From 39610d132596d6db0568b4fdbe453362e9467912 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 13 Jun 2010 19:25:33 +0000 Subject: [PATCH] Skipping all hidden files (those starting with a dot - ".") when compiling (issue #209). --- app/src/processing/app/debug/Compiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index a4d80aa6c..8777f1d59 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -486,7 +486,7 @@ public class Compiler implements MessageConsumer { if (folder.listFiles() == null) return files; for (File file : folder.listFiles()) { - if (file.getName().equals(".") || file.getName().equals("..")) continue; + if (file.getName().startsWith(".")) continue; // skip hidden files if (file.getName().endsWith("." + extension)) files.add(file);