(Path directory, Predicate<Path> fileFilter)
| 437 | } |
| 438 | |
| 439 | private static Collection<Path> listFiles(Path directory, Predicate<Path> fileFilter) |
| 440 | throws IOException { |
| 441 | Predicate<Path> filter = fileFilter != null ? fileFilter : p -> true; |
| 442 | try (Stream<Path> directoryFiles = Files.list(directory)) { |
| 443 | return directoryFiles.filter(filter).collect(Collectors.toList()); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | /** |
| 448 | * Check all the arguments looking to see if any are directories, and if so then we can recurse |
no test coverage detected