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