refactor(file finder): Added utility method for finding files at depth zero.
@@ -49,6 +49,11 @@ public interface FileFinder {
return findFiles(directoryToSearch, Arrays.asList(filenamePattern), depth);
}
+ @NotNull
+ default List<File> findFiles(File directoryToSearch, List<String> filenamePatterns) {
+ return findFiles(directoryToSearch, filenamePatterns, 0);
+ }
+
@NotNull
List<File> findFiles(File directoryToSearch, List<String> filenamePatterns, int depth);
}
