diff --git a/src/main/java/com/volmit/iris/manager/IrisProject.java b/src/main/java/com/volmit/iris/manager/IrisProject.java index dae406963..fedbdf86c 100644 --- a/src/main/java/com/volmit/iris/manager/IrisProject.java +++ b/src/main/java/com/volmit/iris/manager/IrisProject.java @@ -41,6 +41,30 @@ public class IrisProject return activeProvider != null; } + public KList collectFiles(File f, String json) + { + KList l = new KList<>(); + + if(f.isDirectory()) + { + for(File i : f.listFiles()) + { + l.addAll(collectFiles(i, json)); + } + } + + else if(f.getName().endsWith("."+json)) + { + l.add(f); + } + + return l; + } + + public KList collectFiles(String json) { + return collectFiles(path, json); + } + public void open(MortarSender sender) { open(sender, () ->