MCPcopy Index your code
hub / github.com/processing/processing / listFilesImpl

Method listFilesImpl

app/src/processing/app/Util.java:417–435  ·  view source on GitHub ↗
(File folder, boolean relative,
                            String extension, StringList list)

Source from the content-addressed store, hash-verified

415
416
417 static void listFilesImpl(File folder, boolean relative,
418 String extension, StringList list) {
419 File[] items = folder.listFiles();
420 if (items != null) {
421 for (File item : items) {
422 String name = item.getName();
423 if (name.charAt(0) != '.') {
424 if (item.isDirectory()) {
425 listFilesImpl(item, relative, extension, list);
426
427 } else { // a file
428 if (extension == null || name.endsWith(extension)) {
429 list.append(item.getAbsolutePath());
430 }
431 }
432 }
433 }
434 }
435 }
436
437
438 /**

Callers 1

listFilesMethod · 0.95

Calls 3

listFilesMethod · 0.45
getNameMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected