public void addModelsFromFolder(File _folder, boolean _recursive, Set _failures) throws IOException, EOModelException { File[] files = _folder.listFiles(); for (int fileNum = 0; fileNum < files.length; fileNum++) { String name = files[fileNum].getName(); if (files[fileNum].isDirectory()) { if (name.endsWith(".eomodeld")) { addModelFromFolder(files[fileNum], _failures); } else if (_recursive) { addModelsFromFolder(files[fileNum], _recursive, _failures); } } }
public void addModelsFromFolder(File _folder, Set _failures) throws IOException, EOModelException { addModelsFromFolder(_folder, true, _failures);
  public void addModelsFromFolder(File _folder, boolean _recursive, Set _failures) throws IOException, EOModelException {    File[] files = _folder.listFiles();    for (int fileNum = 0; fileNum < files.length; fileNum++) {      String name = files[fileNum].getName();      if (files[fileNum].isDirectory()) {        if (name.endsWith(".eomodeld")) {          addModelFromFolder(files[fileNum], _failures);        }        else if (_recursive) {          addModelsFromFolder(files[fileNum], _recursive, _failures);        }      }    }  }