1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Skipping all hidden files (those starting with a dot - ".") when compiling (issue #209).

This commit is contained in:
David A. Mellis 2010-06-13 19:25:33 +00:00
parent e2f5f0c9d6
commit 39610d1325

View File

@ -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);