mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Skipping all hidden files (those starting with a dot - ".") when compiling (issue #209).
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user