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:
parent
e2f5f0c9d6
commit
39610d1325
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user