diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java index 0f024b33f..6a6b395d7 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/r5/validation/ValidationEngine.java @@ -595,8 +595,7 @@ public class ValidationEngine implements IValidatorResourceFetcher { private Map scanDirectory(File f, boolean recursive) throws FileNotFoundException, IOException { Map res = new HashMap<>(); for (File ff : f.listFiles()) { - if (ff.isDirectory()){ - if (recursive) + if (ff.isDirectory() && recursive){ res.putAll(scanDirectory(ff, true)); } else if (!isIgnoreFile(ff)) {