mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
parent
f15ddeb846
commit
e9ecaa70f7
@ -344,6 +344,9 @@ public class FileUtils {
|
||||
public static List<File> listFiles(File folder, boolean recursive,
|
||||
List<String> extensions) {
|
||||
List<File> result = new ArrayList<>();
|
||||
if (!folder.exists()) {
|
||||
return result;
|
||||
}
|
||||
|
||||
for (File file : folder.listFiles()) {
|
||||
if (isSCCSOrHiddenFile(file))
|
||||
|
Loading…
Reference in New Issue
Block a user